Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: global variable initialization inside try{}

by targetsmart (Curate)
on Apr 09, 2009 at 14:50 UTC ( #756617=note: print w/ replies, xml ) Need Help??


in reply to global variable initialization inside try{}

When the global is declared using "my", the variable is undefined inside the try{}

It showing defined value when i checked it. my and our is not the problem here, both will be visible inside the routines of the package global_stuff if the variable is declared globally inside global_stuff, something else is the mistake check it out.

UPDATE
perl version 5.8.8, Error version 0.15, Debian GNU linux i686


Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.


Comment on Re: global variable initialization inside try{}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (17)
As of 2014-07-10 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (210 votes), past polls