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

RE: use lib question

Thread Previous | Thread Next
Bob Showalter
February 5, 2002 08:53
RE: use lib question
Message ID:
> -----Original Message-----
> From: Kingsbury, Michael []
> Sent: Tuesday, February 05, 2002 11:31 AM
> To: ''
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About