Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Mutable foreach list?

by almut (Canon)
on Jan 11, 2007 at 15:52 UTC ( #594186=note: print w/replies, xml ) Need Help??


in reply to Re^2: Mutable foreach list?
in thread Mutable foreach list?

Empirical evidence suggests ;) the list given to foreach (...) is not being re-evaluated upon every iteration -- though I wouldn't want to rely on it... As Fletch already said, just "don't muck with arrays you're looping over".

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-08-08 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (51 votes). Check out past polls.

    Notices?