On Tue, 2005-01-04 at 21:42 -0800, Mike Carlton wrote: > But isn't there a problem with making db connections from startup.pl?
Only if you don't close them before forking. > Particularly with Class::DBI::mysql, just loading a class makes a > database connection. Right, but Class::DBI doesn't do this, so it's not an issue if you aren't using the fancy auto-discovery stuff in the subclasses. > Is there a safe way to make database connections > from startup.pl and not have it blow up? Call MyClass->db_Main->disconnect() at the end of it. - Perrin