in reply to use lib and use autouse 'module'
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use lib and use autouse 'module'
by cvg2mco (Novice) on Jul 28, 2006 at 23:48 UTC | |
by Hue-Bond (Priest) on Jul 29, 2006 at 00:10 UTC | |
by cvg2mco (Novice) on Jul 29, 2006 at 01:12 UTC | |
by Hue-Bond (Priest) on Jul 29, 2006 at 12:48 UTC | |
by sshivell (Initiate) on Aug 22, 2006 at 17:51 UTC |