Can't you just use
use lib '/directory/containing/your/pm'; use testmodule;
or
BEGIN { require 'path/to/testmodule.pm'; your::package::name->import; }
see lib or use for more information
In reply to Re: how to get a module to work in a specific directory
by FunkyMonk
in thread how to get a module to work in a specific directory
by chuckd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |