![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Importing variables (not functions) from in-file packagesby choroba (Cardinal) |
on Feb 12, 2014 at 15:46 UTC ( #1074638=note: print w/replies, xml ) | Need Help?? |
The error "... requires explicit package name" is a compile time error. It means Perl was not able to find where the variable was declared when compiling the script. Just put all the packages before the main package and everything will work.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|