You should take a look at DBIx::Connection because it solves a lot of the issues with handling $dbh instances. I recommend you pass around the DBIx::Connection object, but if you want just the $dbh, you can use Moose coercions to convert a DBIx::Connection object into a $dbh.
In reply to Re: (Moose)? $dbh or DBI connection info - how to abstract
by stvn
in thread (Moose)? $dbh or DBI connection info - how to abstract
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |