in reply to Importing constants into another module
The code we're interested in is actually in Audit::Config. Specifically, look at Exporter - you use Exporter in your exporting module (makes sense), set up an @EXPORT array (I use "our @EXPORT = ...", but that's because I never use an older version of perl where our doesn't exist), and Bob's yer uncle. All other modules that "use Audit::Config;" will automatically get the exported constants.
I doubt it's making your module OO that made this stop working - it's probably the use strict ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Importing constants into another module
by paulski (Beadle) on Feb 03, 2005 at 01:35 UTC | |
by bmann (Priest) on Feb 03, 2005 at 02:20 UTC | |
by paulski (Beadle) on Feb 03, 2005 at 02:38 UTC | |
by Tanktalus (Canon) on Feb 03, 2005 at 04:53 UTC | |
by paulski (Beadle) on Feb 03, 2005 at 05:15 UTC | |
by bmann (Priest) on Feb 03, 2005 at 02:52 UTC | |
by paulski (Beadle) on Feb 03, 2005 at 04:00 UTC | |
|