See perlvar on %ENV:
As of v5.18.0, both keys and values stored in %ENV are stringified.
The solution is to not store the database connection in %ENV but to store it in some other global variable or to write a function that stores the connection:
sub get_dbh { state $dbh ||= connect_dbh( ... ); }
In reply to Re: Custom $ENV after upgrade not holding DBI connection
by Corion
in thread Custom $ENV after upgrade not holding DBI connection
by ChrisOfVa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |