Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: storing database handle object in a variable

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


in reply to storing database handle object in a variable

What happens when you try it?

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://811885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-19 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found