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

Re: foreach argument modification inside loop, followed by return from loop

by roboticus (Chancellor)
on Jul 10, 2013 at 10:45 UTC ( [id://1043447]=note: print w/replies, xml ) Need Help??


in reply to foreach argument modification inside loop, followed by return from loop

vsespb:

I'm with tobyink on this one--since you're leaving your foreach immediately after changing the array, I don't see how it could/should matter.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: foreach argument modification inside loop, followed by return from loop

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-20 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found