Perl:Count 0 to 9

From Progzoo
Revision as of 02:25, 1 January 2008 by Andr3w (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]