in reply to RE: passing DBI database handles to subroutines
in thread passing DBI database handles to subroutines
If you fail to do that, and manage executing that block twice in a program, you'll get the wonderful $dbh won't stay shared error, indicating some serious bad voodoo.BEGIN { my $dbh; sub get_db_handle { .. .. return $dbh; } }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE (3): passing DBI database handles to subroutines
by tilly (Archbishop) on Aug 09, 2000 at 23:20 UTC | |
by Anonymous Monk on Aug 10, 2000 at 00:08 UTC | |
by tilly (Archbishop) on Aug 10, 2000 at 00:14 UTC |