Others have hopefully helped you understand what the issue is. I'll add this:
use XYZ ();
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 reply to Re: Importing constans and variables when "require"ing
by tobyink
in thread Importing constans and variables when "require"ing
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |