[ABE.pm] And another thing...
Faber J. Fedor
faber at linuxnj.com
Fri May 19 11:29:02 PDT 2006
On 19/05/06 12:41 -0500, Phil Lawrence wrote:
> On May 17, 2006, at 7:15 PM, Faber J. Fedor wrote:
> > How do I pass a variable from the superclass to the subclass? Nothing
> > I've tried works.
I made it work, but I'm not sure if it's the Right Way; in my subclass I
created a constructor which called the superclass constructor.
> > Specifically, I want to make a DB connection in my superclass which
> > all
> > of the subclasses would use (ideally, it should be the same connection
> > for all subclasses, but that's a nicetie right now). One of the
> > simplest
> > things I've done in my superclass is this:
> See connect_cached in the DBI perldoc and see if it helps.
I'll look into that.
Linux New Jersey, Inc.
More information about the ABE-pm