kathys39 has asked for the wisdom of the Perl Monks concerning the following question:
but this puts the company i want to delete into my array not the opposite. Do I need to cycle thru each of my companies, find the array #, then use splice? Seems like there should be a shorter way...@allcompanies = grep { $_ != $co } @allcompanies
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splice help - deleting specific element
by ikegami (Patriarch) on Oct 17, 2008 at 16:49 UTC | |
|
Re: splice help - deleting specific element
by toolic (Bishop) on Oct 17, 2008 at 16:50 UTC | |
|
Re: splice help - deleting specific element
by mpeever (Friar) on Oct 17, 2008 at 16:52 UTC | |
by JavaFan (Canon) on Oct 17, 2008 at 17:15 UTC | |
by mpeever (Friar) on Oct 17, 2008 at 20:43 UTC | |
by kathys39 (Acolyte) on Oct 17, 2008 at 17:07 UTC | |
|
Re: splice help - deleting specific element
by Illuminatus (Curate) on Oct 17, 2008 at 16:49 UTC | |
by ikegami (Patriarch) on Oct 17, 2008 at 16:50 UTC |