Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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.

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

-- 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://756617]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2018-01-19 09:48 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (216 votes). Check out past polls.