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.