use BEGIN:
perl -e 'BEGIN {if (`pwd` =~ /some_path/){use lib ("/usr");}else{use lib
("/home");}}'

i usually unshift @INC but i've heard that's not a good way to do it,
not sure why though.

/Jon

"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?
> 
> -mike
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to