in reply to Foreach Loops
A slight improvement over holli's in that you can access the entire i-1 previous elements.my $i = 0; foreach (@myarray) { # stuff goes here $i++; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Foreach Loops
by Roy Johnson (Monsignor) on Mar 15, 2005 at 22:09 UTC |