Do you know where your variables are? | |
PerlMonks |
Re: Inheritance questionby pc88mxer (Vicar) |
on Jul 11, 2008 at 17:36 UTC ( [id://697038]=note: print w/replies, xml ) | Need Help?? |
Move your calls to new to the end of the file.
Or, replace: @ISA = qw/A/ with: use base 'A'. The problem is that @ISA = qw/A/ is not being run at compile time, and so package B isn't completely set up before you call B->new().
In Section
Seekers of Perl Wisdom
|
|