> > 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
>
I tried the Apache::Server::Starting/Restarting variables.  When using
apachectl startssl, Starting =1 both times that startup.pl is compiled, and
Restarting =0 on both, so those don't work as they should either I guess.

What does work is just writing out the value to a temp file on the first
compile, and reading it on the second then deleting it.  Kind of a hack but
better than just having the password hard coded in the config file.

Chris


>
> -- 
> 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
>
>


-- 
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