in reply to Re: Deleting specific element in array in FOREACH loop
in thread Deleting specific element in array in FOREACH loop
for my $index (reverse 0 .. $#array)
is a more Perlish way to achieve that. It is clearer and avoids fence posts.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Deleting specific element in array in FOREACH loop
by ikegami (Patriarch) on Sep 15, 2006 at 20:08 UTC | |
by mreece (Friar) on Sep 15, 2006 at 20:15 UTC | |
by ikegami (Patriarch) on Sep 15, 2006 at 21:47 UTC |