in reply to Using constants in multiple files?
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
|
|---|