May 25, 2013, 10:35 AM
What version of perl are you using? parent.pm was added to core in v5.10.1. If you're using an older version that would cause the "can't locate parent.pm in @INC" error.
Re: [death_metal] Error while creating code for inheritance
Are both package definitions in the same file, or are they separate files?
You should have them in separate files, but if want them in the same file and you want to setup inheritance, then you need to use the -norequire option/param
use parent -norequire 'lolol';
If you're using an older version, use base instead of parent.
(This post was edited by FishMonger on May 25, 2013, 10:39 AM)