Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: OO, inheriting functions from other packages

by guha (Priest)
on Jul 22, 2004 at 16:22 UTC ( #376642=note: print w/ replies, xml ) Need Help??


in reply to OO, inheriting functions from other packages

Maybe Class::Singleton, which would be your b-option but more elegant in your wording.

At startup you would create your $dbh, and all subsequent use of the constructor would give a reference to the first $dbh.


Comment on Re: OO, inheriting functions from other packages
Re^2: OO, inheriting functions from other packages
by sschneid (Deacon) on Jul 22, 2004 at 16:27 UTC
    I think that, at first glance, this is what I was thinking. Something about having multiple objects that all do the same thing spread throughout packages seemed wrong. I'll look into it, thanks!

    -s.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-06 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls