sliver has asked for the wisdom of the Perl Monks concerning the following question:
package LOADER; require Exporter; use vars qw( $ROOTDIR $ROOTSERVER $ROOTNAME @importList @onDemandImportList %onDemandGroups @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION ); $ROOTDIR = '/some/dir/'; $ROOTSERVER = 'someurl.com'; $ROOTNAME = 'some name'; @importList = qw( $ROOTDIR $ROOTNAME $ROOTSERVER ); @onDemandImportList; %onDemandGroups; require qq|$ROOTDIR/LIBS/FUNCTIONS.pl|; require qq|$ROOTDIR/LIBS/HTML.pl|; require qq|$ROOTDIR/LIBS/TEMPLATE.pl|; require qq|$ROOTDIR/LIBS/FORM.pl|; require qq|$ROOTDIR/LIBS/IMAGE.pl|; require qq|$ROOTDIR/LIBS/USER.pl|; require qq|$ROOTDIR/LIBS/SECURE.pl|; require qq|$ROOTDIR/LIBS/BOARD.pl|; require qq|$ROOTDIR/LIBS/GLOBALS.pl|; require qq|$ROOTDIR/LIBS/INIT.pl|; @ISA = qw(Exporter); @EXPORT = @importList; @EXPORT_OK = @onDemandImportList; %EXPORT_TAGS = %onDemandGroups; $VERSION = 1.00;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod perl global initialization
by sgifford (Prior) on May 11, 2004 at 03:55 UTC | |
|
Re: mod perl global initialization
by Tomte (Priest) on May 11, 2004 at 09:00 UTC | |
|
Re: mod perl global initialization
by BUU (Prior) on May 11, 2004 at 04:11 UTC | |
|
Re: mod perl global initialization
by perrin (Chancellor) on May 11, 2004 at 17:11 UTC | |
|
Re: mod perl global initialization
by sliver (Initiate) on May 11, 2004 at 16:39 UTC |