develooper Front page | perl.beginners | Postings from February 2002

Re: use lib question

Thread Previous | Thread Next
February 5, 2002 09:08
Re: use lib question
Message ID:
>>>>> "Jeff" == Jeff 'Japhy' Pinyan <> writes:

Jeff>   use lib $ARGV[0] eq '-foo' ? "/this/path" : "/that/path";

I don't believe @ARGV is set up early enough to do that.  I'd be happy
if that worked, but I'm suspicious.  Have you tested this?

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<> <URL:>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See for onsite and open-enrollment Perl training!

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About