I can not think of a situation in which turning on strict would remove access to global variables. They just don't have anything to do with one another. Could you reduce your code to a minimal test case and post it here? I have the feeling that you are missing something.
Also, you may wish to consider 'our' or 'use vars' for globals. They allow you to use globals without giving up the virtues of strict. You can read about the differences between 'our' and 'my' if you think that will clear things up for you.
My burning question, though, is why you feel that a global variable is "the way to go"? Seldom is a global variable the best option for something. If you explain your reasoning, perhaps we can suggest a better option?
Cheers,
Ovid
Vote for paco!
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: package identifiers and scope question
by Ovid
in thread package identifiers and scope question
by apprentice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |