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

Re: use lib question

Thread Previous | Thread Next
From:
Brett W. McCoy
Date:
February 5, 2002 09:09
Subject:
Re: use lib question
Message ID:
Pine.LNX.4.43.0202051215591.30304-100000@chapelperilous.net
On Tue, 5 Feb 2002, Kingsbury, Michael wrote:

> 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 could always use the -M<module> switch on the command-line to choose
which module to use for the script.

-- Brett
                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
There's no point in being grown up if you can't be childish sometimes.
		-- Dr. Who


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