Perl: While Loop
Perl while loop is quite easy to understand: #!/usr/bin/local/perl $a = "programmingbulls"; $count = 0; while ($count < 10){ print "$a \n"; $count++; } The above program would print programmingbulls 10 times. Another useful example can be when asking for an input from user: #!/usr/bin/local/perl $a = ; chop $a; while ($a ne "programmingbulls"){ print "wrong input \n"; $a = chop $a; }

Recent comments
24 weeks 11 hours ago
24 weeks 4 days ago
24 weeks 4 days ago
24 weeks 6 days ago
25 weeks 4 days ago
27 weeks 5 days ago
30 weeks 5 days ago
33 weeks 4 days ago
34 weeks 2 days ago
35 weeks 1 day ago