Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Scoping of my with foreach loop

by mikeB (Friar)
on Mar 07, 2005 at 19:12 UTC ( [id://437289]=note: print w/replies, xml ) Need Help??


in reply to Scoping of my with foreach loop

Neither will compile? No, wait. That's a similarity. :)

Assuming you meant $item in each case, the difference would be in the scope of $item. In the second case it would be limited to the foreach block.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found