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

Re: use lib question

Thread Previous | Thread Next
Brett W. McCoy
February 5, 2002 09:09
Re: use lib question
Message ID:
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
There's no point in being grown up if you can't be childish sometimes.
		-- Dr. Who

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