Just another Perl shrine | |
PerlMonks |
Re: Simple inheritance questionby jethro (Monsignor) |
on Apr 23, 2010 at 16:29 UTC ( [id://836558]=note: print w/replies, xml ) | Need Help?? |
If test() were included in Two's namespace, Two could not override it with its own test() if needed.
UPDATE: You can use Exporter to add test to Two's namespace if you like. After all a class is just a package
In Section
Seekers of Perl Wisdom
|
|