in reply to Question on syntax
This would allow you/someone else to more easily add more steps to the loop:for my $number ( 1 .. 10 ) { print $number; }
Hope that helpsfor my $number ( 1 .. 10 ) { $number *= $number; print $number, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question on syntax
by Porculus (Hermit) on Apr 23, 2008 at 20:41 UTC |