How come you're not using use strict;? It would have told you you were using variables that don't exist.
Lexical (my) variables are only visible to the scope in which they are declared. That scope is the file scope in this case. In fact, the variables don't even exist by the time you try to use it since Perl freed them when there ceased to be any reference to them.
In reply to Re: Using packages to store global configuration vars
by ikegami
in thread Using packages to store global configuration vars
by fuzzyping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |