Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Is it safe to append to the array you are iterating over

by kcott (Chancellor)
on Mar 14, 2013 at 18:01 UTC ( #1023518=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    push @arr, $some_var if $_ eq 'd';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1023518]
help
Chatterbox?
and the daffodils sway...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2017-11-25 02:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?