That's an incorrect way of writing the following:
use lib "/home/geoffleach/src/lib"; use My::Example;
The OP claimed this doesn't work. Your version won't work any better. (It's in fact worse since it doesn't include the related arch dir.)
(Also, it doesn't make much sense to hardcode absolute paths to library directories. Use PERL5LIB for absolute paths, and use use lib for relative paths.)
In reply to Re^2: Curious behavior of Use
by ikegami
in thread Curious behavior of Use
by geoffleach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |