Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Printing a Variable outside of the block

by Roy Johnson (Monsignor)
on Apr 15, 2008 at 16:35 UTC ( [id://680567]=note: print w/replies, xml ) Need Help??


in reply to Printing a Variable outside of the block

You need to declare your variables in the outermost scope you want to use them in. Since you want to use them outside the block, you should declare them outside (before) the block.

Caution: Contents may have been coded under pressure.
  • Comment on Re: Printing a Variable outside of the block

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-19 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found