this is apache 1.3.29/mod_perl 1.28 I use connect_on_init for database connections, and I want to read the password from STDIN instead of putting the password into the startup.pl file. I was reading that apache initializes the modules twice when it starts up, but I'm confused by the behavior I am getting with the following code. It appears to run twice, with the first run setting $my::dbpass fine, and on the second it contains nothing. I can't see how to get $my::dbpass to persist through the second init. Any ideas on how to do this?
Chris $my::dbpass = <STDIN> unless defined $my::dbpass; chop $my::dbpass; # for testing purposes open(OUT, ">>/tmp/db"); print OUT "$my::dbpass"; close OUT; -- 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