more useful options | |
PerlMonks |
Re^2: using passed parent object reference to get at attributesby mr_ron (Chaplain) |
on Dec 20, 2015 at 14:50 UTC ( [id://1150800]=note: print w/replies, xml ) | Need Help?? |
I wondered about doing "use parent" instead of working with @ISA for the test case. I didn't know but it turns out you can if the Perl isn't really ancient (I think you need 5.10.1). Instead of: one could also:
In the real application, as opposed to the test example, the classes are probably broken up into seperate files and you probably just remove the '-norequire, '.
Ron
In Section
Seekers of Perl Wisdom
|
|