in reply to Re: Howto set path for local package in a Perl code
in thread Howto set path for local package in a Perl code

Example: Use FindBin and your script will work no matter where you move it and its modules together.
use FindBin; use lib "$FindBin::Bin"; use MyPackage;
use lib only adds the path to @INC, you still need to use MyPackage after it.