|laziness, impatience, and hubris|
2 questions about anonymous storage and global variablesby cosmicperl (Chaplain)
|on Jan 13, 2006 at 00:48 UTC||Need Help??|
cosmicperl has asked for the
wisdom of the Perl Monks concerning the following question:
I've got a situation and I'm trying to find the right code for it that strict pragma will agree with.
Firstly I have a scalar that will contain either a value or a reference to an array. If it's an array I want it to do one thing. If it's a scalar value I want it to do another. What's the correct way of doing this so I don't get errors?
Secondly How can a make a global variable truely global, so that it will be accessible by all packages without using package::variable.