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

Re: use lib question

Thread Previous | Thread Next
Jeff 'japhy' Pinyan
February 5, 2002 09:14
Re: use lib question
Message ID:
On Feb 5, Randal L. Schwartz said:

>>>>>> "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?

  japhy% bleadperl -le 'BEGIN { print "<@ARGV>" }' a b c 
  <a b c>

Jeff "japhy" Pinyan
RPI Acacia brother #734
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.

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