my $dbh=bar(); foo($dbh); sub foo{ my $dbh=shift; # do something with the database handle.... } sub bar{ my $dbh=DBI->connect(...... return $dbh; }
In reply to Re: How do I pass a database handle in DBI between subroutines?
by lhoward
in thread How do I pass a database handle in DBI between subroutines?
by moo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |