Don't ask to ask, just ask | |
PerlMonks |
Re^2: Using a single database handle or multiple handlesby erix (Prior) |
on Oct 11, 2012 at 15:32 UTC ( [id://998480]=note: print w/replies, xml ) | Need Help?? |
If your subs comprise transactions and you need to close the connection after each, you would let the sub set up the connection. This seems a somewhat strange procedure, or construction. Transactions are committed or rolled back by telling the database to COMMIT or ROLLBACK (and dbi can do either), not by closing the connection...
In Section
Seekers of Perl Wisdom
|
|