Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: OO, inheriting functions from other packages

by guha (Priest)
on Jul 22, 2004 at 16:22 UTC ( [id://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

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 08:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found