in reply to Re: splice help - deleting specific element
in thread splice help - deleting specific element
Notice if there are duplicates, this will whack all of them.That's easily solved:
my $i = 0; @allcompanies = grep {$_ ne $co or $i++} @allcompanies;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: splice help - deleting specific element
by mpeever (Friar) on Oct 17, 2008 at 20:43 UTC |