Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Changing @INC path detail

by graq (Curate)
on Dec 06, 2007 at 08:52 UTC ( #655316=note: print w/ replies, xml ) Need Help??


in reply to Changing @INC path detail

If you have some code that you want to flip between using different library paths, you can make it $ENV dependent.

BEGIN { $ENV{$_} && unshift @INC, $ENV{$_} for (qw|DEVA_OR_DEVB|); }

Setting up $ENV will depend on your OS / server environment.

-=( Graq )=-


Comment on Re: Changing @INC path detail
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2015-01-28 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (222 votes), past polls