in reply to Re: Is "use" same as include?
in thread Is "use" same as include?
Each of the other modules module1.pm, module2.pm, module3.pm then havepackage MyConstants; require Exporter; @ISA = qw(Exporter); our @EXPORT = do { no strict 'refs'; keys %{ __PACKAGE__ . '::'}; }; use constant VAR1 => VAL1; use constant VAR2 => VAL2; #--- 500 more of these 1;
use MyConstants;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is "use" same as include?
by Marshall (Canon) on Jul 15, 2009 at 21:46 UTC | |
|
Re^3: Is "use" same as include?
by ikegami (Patriarch) on Jul 15, 2009 at 20:27 UTC |