|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: removing elements from an arrayby Anonymous Monk |
| on Aug 09, 2012 at 21:00 UTC ( #986611=note: print w/ replies, xml ) | Need Help?? |
|
Think of it as iterating through the existing array and creating a new array containing only what you want. Then, if you wish, empty out the old array. The approach can actually be more efficient than you suppose.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||