in reply to Problem creating a singleton wrapper around DBI

chromatic has it exactly. I'd like to add that if you wish to add other functions, "transparently," to the returned object, you probably want to check out delegation as a design. Class::Delegation has some things to make things simple but it isn't required for that.
  • Comment on Re: Problem creating a singleton wrapper around DBI

Replies are listed 'Best First'.
Re^2: Problem creating a singleton wrapper around DBI
by skx (Parson) on Aug 23, 2005 at 04:24 UTC

    Not immediately relevant, but it's worth bearing mind for the future.

    Thanks for the pointer!

    Steve
    --