in reply to object inheritance in non ~.pm files

I'm pretty sure this is solved by using "use base" instead of manually assigning to @ISA (but only because it also wraps it in a BEGIN).
  • Comment on Re: object inheritance in non ~.pm files

Replies are listed 'Best First'.
Re^2: object inheritance in non ~.pm files
by g0n (Priest) on Jan 27, 2005 at 14:16 UTC
    Thanks Mutant, your fix worked fine and was easy to implement. Thanks also to Dragonchild and Podmaster for suggestions.

    For reference, syntax for definition of subclass 'badger' should have been

    package mammal::badger; use base qw(mammal);

    No direct assignment to @ISA is necessary with this syntax.

    VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz