Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 studying the Monastery: (9)
As of 2014-08-20 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (111 votes), past polls