You can always unshift directories into @INC whenever you want. What you haven't specified is how are you going to let the program know what directory it should unshift. Once you get it into the program, it's easy:
## File: FOO.pm package FOO; print "loading foo\n"; sub foo { print "in foo::foo\n"; } 1;
## main program use autouse 'FOO' => qw/foo/; unshift @INC, '.'; foo; __END__ loading foo in foo::foo
--
David Serrano
In reply to Re: use lib and use autouse 'module'
by Hue-Bond
in thread use lib and use autouse 'module'
by cvg2mco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |