in reply to
Re: basic inheritance question
in thread
basic inheritance question
Great, thank you! Moving the main program beneath the package blocks made it work. I didn't realize the order mattered.
Comment on
Re^2: basic inheritance question
Replies are listed 'Best First'.
Re^3: basic inheritance question
by
ikegami
(Patriarch)
on Jun 05, 2009 at 02:56 UTC
The assignment to
@ISA
occurs later and thus hadn't been executed before the call to
new
, so the inheritance wasn't setup.
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom