in reply to Accessibility of package-level variables
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessibility of package-level variables
by sirrobert (Acolyte) on Apr 16, 2008 at 15:05 UTC |