Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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

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
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 perusing the Monastery: (11)
As of 2016-06-30 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (396 votes). Check out past polls.