It looks like you're exporting subroutines into derived classes. Which you shouldn't have to do, since derived classes already inherit their methods from the base class.
Any way, if that's exactly what's in your code and this is one file then the immediate problem is you're use()ing "pm::Section" before it's defined, so pm::Section->import() is not called. Move pm::Section into it's own pm/Section.pm file.
update: the above paragraph probably isn't right, since this code would abort when trying to load pm/Section.pm, unless you've also got that file but you're defining the rest of the package here.
Also, since you're defining your own import() method, setting @EXPORT_OK & friends in pm::Section won't do a thing.
Actually, everything in pm::Section::import and pm::Section::inheir_merge looks very suspicious.
In reply to Re: Dealing with design -- inheritance + exporting gone bad :(..
by Joost
in thread Dealing with design -- inheritance + exporting gone bad :(..
by yaneurabeya
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |