in reply to use lib statement with path variable
I think a better way to deal with this type of problem is to use the PERL5LIB env variable, rather than a $path variable inside your script.
In Section
Seekers of Perl Wisdom
in reply to use lib statement with path variable