Database handler passing

2005-01-14 Thread Nicolay A. Vasiliev
Hello there! Is this correct to pass DB handle ($dbh) as subroutine parameter? I don't want to make DB connection everytime when I need to get some data from DB. But if I connected once I'd like to pass one db handler. TIA. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: Database handler passing

2005-01-14 Thread Chris Devers
On Sat, 15 Jan 2005, Nicolay A. Vasiliev wrote: > Is this correct to pass DB handle ($dbh) as subroutine parameter? I > don't want to make DB connection everytime when I need to get some > data from DB. But if I connected once I'd like to pass one db handler. Of course you can, and should, do

Re: Database handler passing

2005-01-15 Thread Nicolay A. Vasiliev
Thank you, Chris! Chris Devers wrote: Of course you can, and should, do things this way. ... Etc., where the subroutines are defined later, and the database and statement handles get declared once and then passed around as needed. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co