Can't locate object method "new" via package "Agent" at test.pl line 10.
The code you provided does not give this error. It doesn't even have 10 lines.
Can't locate object method "_init" via package "tools" (perhaps you forgot to lo ad "tools"?) at Agent.pm line 10
Like the error message says, you didn't load tools with use.
In reply to Re: Implementing inheritance in Perl
by ikegami
in thread Implementing inheritance in Perl
by opensourcer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |