Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: How to share DBI connections between objects?

by izut (Chaplain)
on Mar 26, 2007 at 22:22 UTC ( #606673=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2021-03-02 21:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (64 votes). Check out past polls.

    Notices?