Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to extent the scope of local variable outside block??

by moritz (Cardinal)
on May 13, 2015 at 13:06 UTC ( [id://1126547]=note: print w/replies, xml ) Need Help??


in reply to How to extent the scope of local variable outside block??

Declare the variable outside the foreach loop, then you can access it it outside the loop.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found