In addition to what ambrus says, you can import the constants you want with,
which will alias A::XX() to Constants::XX(). XX() may then be used in package A without a fully qualified name.# in A.pm package A; use Constants qw(XX);
After Compline,
Zaxo
In reply to Re: Using constants in multiple files?
by Zaxo
in thread Using constants in multiple files?
by Jman1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |