And the pm file:## A.pl use BB; $aValue = 10; BB::aSub();
When I run A.pl, it simply outputs "10".## BB.pm package BB; sub aSub { print $main::aValue, "\n"; } 1;
In reply to Re: Variable access across packages?
by syphilis
in thread Variable access across packages?
by porta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |