in reply to Implementing inheritance in Perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |