Keep It Simple, Stupid | |
PerlMonks |
Re^2: How do I import a global variable form a package with require?by haj (Vicar) |
on Jul 22, 2021 at 14:30 UTC ( [id://11135298]=note: print w/replies, xml ) | Need Help?? |
Alternatively, declare the variable for the compiler. The call to import then assigns the value. This prints 7 (with your A.pm):
In Section
Seekers of Perl Wisdom
|
|