![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Importing constans and variables when "require"ingby bliako (Monsignor) |
on Feb 22, 2019 at 16:48 UTC ( #1230428=perlquestion: print w/replies, xml ) | Need Help?? |
bliako has asked for the wisdom of the Perl Monks concerning the following question: Good Monks warm salutations, I am trying to require a module and use a constant and a variable from it but I get an error and a warning respectively. This is the module:
And this is how I require it:
I get an error:
Now, if I comment out the line using CONST then I get this warning:
I have deliberately not used XYZ->import(qw/PI CONST/); as I prefer to use the full name of variables and subs from other modules. But it makes no difference as to the warnings and errors mentioned above. Can you please shed some light?
Back to
Seekers of Perl Wisdom
|
|