[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Omaha.pm] use lib "$ENV{J}/lib";
On 12/9/05, Jay Hannah <jhannah@omnihotels.com> wrote:
> This is pretty weird, but I got a call from a friend, and yes, indeed,
> you can set up @INC via "use lib" using an enfironmental variable...
If you're going to modify an environment variable why not PERL5LIB?
(It's how we manage things at work). (use "$ENV{J}/lib" is a cool
trick though) :)
Another trick I do is to define environment vars to turn on bits of debugging.
use constant DEV_REQUEST => $ENV{DEV_REQUEST} || 0;
...
warn "new request" if DEV_REQUEST;
Since this is done in mod_perl, if its false, the will be completely
skipped if DEV_REQUEST if false.
--
Jeff Bisbee / jbisbee@gmail.com / jbisbee.com