Think about Loose Coupling | |
PerlMonks |
Re: Importing constans and variables when "require"ingby tobyink (Canon) |
on Feb 23, 2019 at 11:06 UTC ( [id://1230461]=note: print w/replies, xml ) | Need Help?? |
Others have hopefully helped you understand what the issue is. I'll add this:
By specifying an explicit empty list at the end of the use statement, Perl will avoid importing anything from the module, but will still load it at compile time. So XYZ::CONST will work.
In Section
Seekers of Perl Wisdom
|
|