Perl-Sensitive Sunglasses | |
PerlMonks |
Re^5: Inheritance without defining the object on inherited moduleby Corion (Patriarch) |
on May 19, 2015 at 06:54 UTC ( [id://1127084]=note: print w/replies, xml ) | Need Help?? |
You cannot (or rather, should not) use code as both, a function and a method. Using inheritance is the bad approach in any way. If you want to call the subroutine in Person from Employee, just call it directly:
In Section
Seekers of Perl Wisdom
|
|