You set $Bar::package_variable in foo.pl, but read $Bar::package_var in Bar.pm
From the "Addresses" section, it appears that they're looking in two different places
As it should. The package variable and the hash element are two different variables.
Update: I got confused by the \${...} no-op.
In reply to Re: Accessibility of package-level variables
by ikegami
in thread Accessibility of package-level variables
by sirrobert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |