Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: foreach array - delete current row ?

by vsespb (Chaplain)
on Jun 02, 2013 at 21:46 UTC ( #1036625=note: print w/ replies, xml ) Need Help??


in reply to foreach array - delete current row ?

delete the current row from an array when looping through it without setting up a counter and splice operation
IHMO counter+splice is most feasible way. I use it when copying arrays with grep is too slow.
  • Comment on Re: foreach array - delete current row ?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-07-29 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (260 votes). Check out past polls.