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

RE: use lib question

Thread Previous | Thread Next
From:
Bob Showalter
Date:
February 5, 2002 08:53
Subject:
RE: use lib question
Message ID:
2E4528861499D41199D200A0C9B15BC031B7F9@taylorwhite.com
> -----Original Message-----
> From: Kingsbury, Michael [mailto:mkingsbury@avayactc.com]
> Sent: Tuesday, February 05, 2002 11:31 AM
> To: 'beginners@perl.org'
> Subject: use lib question
> 
> 
> I want to have two different variable for use lib depending 
> on a cmd line
> switch (one for the production libraries, one for development 
> libraries).
> They exist in different directories.  It appears that it uses 
> the use lib at
> compilation time, rendering an if statement useless.  Anyone 
> have a slick
> way of doing this?

You can also set the PERL5LIB environment variable to point to the
proper libraries. (See the caveats in perldoc perlrun).

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About