It works for me:
$ ls Test.pm $ cat Test.pm package Test; sub foo { @_ } 1; $ perl -le 'use lib "."; use Test; print Test::foo( "Hello, world!" )' Hello, world! $
What did you actually put on the command line?
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re^3: 'use lib' versus '-I'
by hardburn
in thread 'use lib' versus '-I'
by Jaap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |