in reply to Re: removing an element without index
in thread removing an element without index
That is a little more succinct as:
my @data = (1,2,3,4,5,6,7,8,9,10); @data = grep {! m/4/} @data; # Remove elements containing the digit 4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: removing an element without index
by BrowserUk (Patriarch) on Aug 10, 2010 at 01:01 UTC | |
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 |