Flyghost has asked for the wisdom of the Perl Monks concerning the following question:
foreach $line (@array) { @temp = split(/ /,$line); if ( $temp[0] eq "test") { splice(@array, $current_element ,1); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: remove current element out array
by Russ (Deacon) on May 19, 2000 at 05:16 UTC | |
|
Re: remove current element out array
by comatose (Monk) on May 19, 2000 at 19:28 UTC | |
by Anonymous Monk on May 20, 2000 at 01:19 UTC |