Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Scoping of my with foreach loop

by mikeB (Friar)
on Mar 07, 2005 at 19:12 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-01-18 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (53 votes). Check out past polls.

    Notices?