In pmtest.pm:
package pmtest; sub import { print "sub import called\n"; } 1;
In pmtest.pl:
use pmtest;
Result:
>perl -c pmtest.pl sub import called pmtest.pl syntax OK
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.
In reply to Re: "use" modifier code via import()
by Solo
in thread "use" modifier code via import()
by pbeckingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |