Perl:Count 0 to 9

From Progzoo
Jump to: navigation, search

You can use a for loop to count from zero to nine.

A more perlish solution:

for (0..9){
print "$_\n";
}
[Font] [Default] [Show] [Resize] [History] [Profile]