in reply to Overriding constructor

perldoc perlobj (Go for SUPER::) and NEXT maybe a topic for you.

Ordinary morality is for ordinary people. -- Aleister Crowley

Replies are listed 'Best First'.
Re^2: Overriding constructor
by nomis80 (Sexton) on Aug 12, 2005 at 15:00 UTC
    Uh, yeah, I knew about SUPER. But to call a method of Parent, I'd have to call it on an instance of Child, which I don't have yet because that's what I'm trying to create. Please explain.

      You only need an invocant, not a blessed invocant. You can call SUPER on $class.

      Then NEXT would be my choice to go. I haven't used SUPER a long time, so my apologies if it didn't fit.

      Ordinary morality is for ordinary people. -- Aleister Crowley