in reply to Module inheritance
Added the Exporter stuff in Module1 and works just fine. However, had to add ALL the subs in Module1 in its @EXPORT. Is there an easier way so that it exports all its subs by default?See Exporter:
but this can lead to namespace pollution. I'd prefer @EXPORT_OK and %EXPORT_TAGS in most cases.package MyPackage; ... @EXPORT = qw(sub1 sub2);
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|