SPUG: Using import() as init under mod_perl
El JoPe Magnifico
jope-spug at n2h2.com
Fri Aug 6 12:27:20 CDT 1999
FYI, CGI.pm deals with mod_perl by doing this in the new()
subroutine, which gets called on every 'use' of the module.
Actually new() calls _reset_globals() which is a passthrough
to intialize_globals(); the latter also gets called once in
the main block, near the beginning of the module, apparently
to "make mod_perl happy". Suggest checking out the gory
details yourself. =)
Dunno about import() and mod_perl. At best that's a kludgy
place to put (re-)initialization.
-jp
On Fri, 6 Aug 1999, Andrew Sweger wrote:
> Subject: SPUG: Using import() as init under mod_perl
> Let's say you've got a Perl module (Module.pm) that you've loaded via the
> PerlRequire Apache directive (a la mod_perl) and you're planning on
> 'use'ing it in a Perl script serviced under Apache::Registry. Can anyone
> comment on any possible problems with using Module::import() as an
> initialization routine to reset global variables?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list