There's also no guarantee that you're going to have a HOME environment variable either.More importantly, it'll definitely be the wrong HOME if I run your script rather than you.
Even your second solution is wrong in this respect.
The only solution is to fully hard-code the path. That's the point of "use lib", anyway!
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Re: use lib connundrum
by merlyn
in thread use lib connundrum
by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |