in reply to Re^2: removing an element without index
in thread removing an element without index
This would be as succinct, more accurate, and a bit faster:
@data = grep $_ ne '4', @data; # Remove elements equal to '4'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: removing an element without index
by roboticus (Chancellor) on Aug 10, 2010 at 12:54 UTC | |
by BrowserUk (Patriarch) on Aug 10, 2010 at 12:57 UTC | |
by roboticus (Chancellor) on Aug 10, 2010 at 13:03 UTC |