What about using the PERL5LIB environment variable? You wouldn't have to worry about doing use lib. You could do something like this to run your script:
PERL5LIB=/path/lib;export PERL5LIB;/path/yourscript.pl
Or you could do a shell script that would do that for you.
---
-Andrés Monroy-Hernández
In reply to Re: use lib qw(relative path)
by amonroy
in thread use lib qw(relative path)
by ccn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |