in reply to "use" modifier code via import()

I would point out that sub import is called during syntax checks as well, not that this is a problem in your example, but something to watch out for. (Often, people forget this detail...)

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
--Solo
--
You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.