in reply to "use" modifier code via import()
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.
|
|---|