Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: storing database handle object in a variable

by virtualsue (Vicar)
on Dec 09, 2009 at 10:49 UTC ( #811885=note: print w/ replies, xml ) Need Help??


in reply to storing database handle object in a variable

What happens when you try it?


Comment on Re: storing database handle object in a variable
Re^2: storing database handle object in a variable
by chilukuri_perl (Novice) on Dec 09, 2009 at 10:57 UTC
    Sorry to miss the point. This sored database handle object will be used in other script. i.e. it should be persistent for another script.

      Why you want this? May be you better think about separating connection code in a module?

      For persistent database connections, I think you should take a look at using mod_perl or FastCGI, along with something like Apache::DBI. Regular scripts will close the database connection when they exit. I don't think there's anyway to avoid that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-08-28 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls