in reply to Re: Inheritance and calling a subclass method *from* a baseclass method...
in thread Inheritance and calling a subclass method *from* a baseclass method...

Thanks Merlyn, that did it! Just one thing, since its being called as a method (with the indirection operator), it passes the classname as the initial parameter...There's no way around that, right?

__________
Systems development is like banging your head against a wall...
It's usually very painful, but if you're persistent, you'll get through it.

  • Comment on Re^2: Inheritance and calling a subclass method *from* a baseclass method...

Replies are listed 'Best First'.
Re^3: Inheritance and calling a subclass method *from* a baseclass method...
by chromatic (Archbishop) on Mar 03, 2007 at 06:16 UTC

    That's right; that's how you get the invocant in Perl.

    (As a side note, beware of the indirect constructor call; my $object = Some::Class->new() is much more reliable than my $object = new Some::Class(). The latter is very sensitive to order of declaration during parsing; best to avoid it where possible.)