Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Printing a Variable outside of the block

by Roy Johnson (Monsignor)
on Apr 15, 2008 at 16:35 UTC ( #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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://680567]
[PriNet]: go figure, i just tried that, it retains some of the values (not the key) of the pre-assigned value
[PriNet]: i guess i'll just have to use two seperate hashes, there are two, but one is larger than the other, and when i reference the smaller one, it holds onto the values that were assigned to the larger hash (the keynames change, but unless i reassign a new valu

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2017-06-28 02:56 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (619 votes). Check out past polls.