On Thu, 2004-08-26 at 16:28, Chris Ochs wrote:
> I'm also confused about the documentation for PerlRequire.  It say's that
> files loaded via PerlRequire are compiled only once, but my startup.pl file
> is definitly being compiled twice.

My impression is that it's just broken, since I recall seeing the same
behavior.  This has come up before, but no one seems to know quite why
it doesn't work.  It's typically not much of an issue since the average
startup.pl just does 'use Foo', and the use statement will only load Foo
once.

As a workaround, see the $Apache::Server::ReStarting variable in the
docs or load your startup.pl like this:
<Perl>use startup.pl;</Perl>

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to