On Thu, 27 Jul 2000, Jeff Beard wrote:
> I have a couple of package globals that I'd like to populate with
> information from a database when I fire up the web server
[...]
> I thought it might be as simple a declaring the variables and
> populating them the first run of the program but that's no good.
That should work, but you have to do it before the fork (i.e. in
startup.pl or something called from it) and you have to make the variables
globals not lexicals.
> I also thought that I could just run a separate query against the db
> from startup.pl but that fails because the user the connection is
> defaulting to is root even though I've specified username and password.
That should work fine; just debug your connection problem.
- Perrin