Phoenix Rising has asked for the wisdom of the Perl Monks concerning the following question:
We then load mod_perl and Apache::Reload with Module::Load::Conditional's can_load() call (for single code-base mod_perl/mod_perl2 support):PerlOptions +Parent PerlSwitches -I /prog/v060111/web/perllib PerlRequire /prog/v060111/web/perllib/startup.pl PerlInitHandler Apache::Reload PerlSetVar ReloadAll Off
Any ideas as to why this works sporadically? Is Module::Load::Conditional actually doing enough work to simulate a 'use Apache::Reload'?use Module::Load::Conditional qw(can_load check_install requires); if (can_load(modules=> {'mod_perl'=>undef})) { # other mod_perl loads omitted for brevity can_load(modules=> {'Apache::Reload'=>undef})); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Odd Apache::Reload failure
by perrin (Chancellor) on Jun 05, 2008 at 20:14 UTC | |
by Phoenix Rising (Initiate) on Jun 05, 2008 at 20:39 UTC | |
by perrin (Chancellor) on Jun 05, 2008 at 20:45 UTC | |
by tye (Sage) on Jun 05, 2008 at 22:33 UTC |