in reply to Re: How to share DBI connections between objects?
in thread How to share DBI connections between objects?

Hi GrandFather,

I see you are not using the 'usual' way of doing classes. Usually, I use something like this:

package Job; use base 'DBObject'; sub new { my ($class, %params) = @_; ... return $class->SUPER::new(...); }

There's any special reason for not doing this way?

Igor 'izut' Sutton
your code, your rules.

Replies are listed 'Best First'.
Re^3: How to share DBI connections between objects?
by GrandFather (Saint) on Mar 26, 2007 at 22:39 UTC

    Ignorance mostly! :) Thanks for the pointer.

    I'm into my second year of writing Perl and until recently my use of OO has been pretty light. However most things seem to just work so I've only skimmed OO docs to solve immediate issues and have likely missed chunks of the big picture. I'll go back and do some of the required reading real soon now - promise.


    DWIM is Perl's answer to Gödel