in reply to Sharing DBI handler between several modules
I put these two lines in every module, like local_package::do_this and local_package::do_that. It may not be the optimal solution, but it (works | appears to work) for me.unless ($local_package::dbh) { $local_package::dbh = [DBI connect stri +ng] or die [DBI error] }; my $dbh = $local_package::dbh;
|
|---|