So there we've set up Exporter to export testsub whenever Hoos is used. Also, you should require Exporter as useing it calls its own import method.shell> cat Hoos.pm package Hoos; our @EXPORT = 'testsub'; use Exporter; our @ISA = 'Exporter'; sub testsub { print "exported testsub() ok\n" } 1; shell> perl -e 'use Hoos; testsub()' exported testsub() ok
_________
broquaint
In reply to Re: Module Inheritance
by broquaint
in thread Module Inheritance
by ronniec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |