in reply to Inheritance without defining the object on inherited module
But there are no methods in Employee.pm: all of that codes runs at use time, called from main.pl.
For purposes of demonstration, you probably want to wrap the print in Employee.pm as a printme method, and call it from main, such as $object->printme().
Update:
Don't forget to change $object to the $self idiom.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inheritance without defining the object on inherited module
by thanos1983 (Parson) on May 18, 2015 at 09:14 UTC |