in reply to DB Connections across scripts from a module
are you declaring the database handle globally or are you declaring it within the "connect" subroutine? If it is the latter, you will never see a connection in other subroutines.$dbh = DBI->connect($data_source, $username, $auth, \%attr);
Also, are you checking to make sure that the connect was successful? See perldoc DBI.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DB Connections across scripts from a module
by LinuxUser2008 (Acolyte) on Jun 07, 2010 at 03:56 UTC | |
by ikegami (Patriarch) on Jun 07, 2010 at 05:28 UTC |