Rather than using the vars pragma, I would recommend using package variables:In what way are variables declared with the vars pragma not package variables?
This will prevent you from accidentally updating your config variables from your script.It will also prevent you from accessing the keys of the %state_name_for hash, since in your last example it is a lexical scoped my variable not visible in config.pl.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^3: Variable declaration in 'required' file doesn't work under 'strict'?
by shmem
in thread Variable declaration in 'required' file doesn't work under 'strict'?
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |