Perl: the Markov chain saw | |
PerlMonks |
Re: Re: random numberby BrowserUk (Patriarch) |
on Dec 13, 2002 at 04:22 UTC ( [id://219495]=note: print w/replies, xml ) | Need Help?? |
Given that you know the index of the item you want to remove from the array, it would be much more efficient to use splice instead of grep to remove the item from the array.
Examine what is said, not who speaks.
In Section
Seekers of Perl Wisdom
|
|