http://www.perlmonks.org?node_id=756617


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{}