Say your module is in /home/geoffleach/src/lib/My/Example.pm, something like this should work:
# from memory, not tested before posting ... BEGIN { unshift @INC, "/home/geoffleach/src/lib"; }; use My::Example; ...
It's important that the BEGIN block is before the use statement.
In reply to Re: Curious behavior of Use
by cavac
in thread Curious behavior of Use
by geoffleach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |