Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: OO method wont parse

by Mr. Muskrat (Canon)
on Aug 29, 2017 at 17:37 UTC ( #1198284=note: print w/replies, xml ) Need Help??

in reply to OO method wont parse

What I'm trying to achieve is to keep the dbi/sql object instantiated in the constructor by adding it to the hash that is the object (i.e. as a property) The subroutines can then grab that from the hash and use it, rather than having to re-create it.

Is this app single threaded? If not, be sure to read up on DBI - Threads and Thread Safety.

Also, how are you dealing with disconnected database handles? Have you seen DBIx::Connector?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2022-05-17 18:37 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (68 votes). Check out past polls.