in reply to Inheritance not working

You also need to use  our @ISA=etc. . If you move the use strict up one line you will see what I mean :)

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Re: Inheritance not working
by chromatic (Archbishop) on Mar 23, 2002 at 18:22 UTC
    Post hoc, ergo propter hoc.

    If he's not running under strict yet, any non-lexical variable declared will be autovivified as a package global. If he does swap the two lines, he will have to use our or vars, but that's because strict catches that sort of thing, not because it's necessary for inheritance purposes.