You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bart Simpson <ba...@yahoo.com> on 2004/06/17 22:46:02 UTC

[DBI] Pass $dbh to sub with persistent db handles?

Since db handles persist , I was wondering if it is
effiecient if every function that accesses the
database  creates its  own db connection.

Before using mod-perl, i passed the handle to the
subs.
However, i'd rather not have the caller's worry about
the data at all and just say

%cstmr_info =  Customer::contact_info()

or something like that.

thanks




		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html