in reply to Foreach Loops
You can do this, which is somewhat better.
for my $x (0..$#arr) { my $line = $arr[$x]; ## stuff goes here; }
It's even optimized to not create the list.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Foreach Loops
by cog (Parson) on Mar 15, 2005 at 19:11 UTC | |
by Anonymous Monk on Mar 16, 2005 at 15:19 UTC | |
Re^2: Foreach Loops
by Anonymous Monk on Mar 16, 2005 at 15:16 UTC | |
by ikegami (Patriarch) on Mar 16, 2005 at 15:46 UTC |