Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Think about Loose Coupling
 
PerlMonks  

Re: removing elements from an array

by Anonymous Monk
on Aug 09, 2012 at 21:00 UTC ( #986611=note: print w/ replies, xml ) Need Help??


in reply to removing elements from an array

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.


Comment on Re: removing elements from an array

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2013-05-20 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (419 votes), past polls