hotshot has asked for the wisdom of the Perl Monks concerning the following question:
Hello all!
My project is placed in two different locations depends whether I'm on the development environment or on the production environment, therefore I have an enviraonment variable that holds the location according to the environment. The problem is that I need to do:
Hotshot
My project is placed in two different locations depends whether I'm on the development environment or on the production environment, therefore I have an enviraonment variable that holds the location according to the environment. The problem is that I need to do:
and this doesn't seem to work, I shouts a lot of error regarding uninitialized values in lib.pm. It seems that this work only when writing the path explicitly, like that:use lib $projectLocation; # the environment variable I was talking +about
Is there something I can do?use lib '/some/location/';
Hotshot
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problems with 'use lib'
by lestrrat (Deacon) on Aug 21, 2003 at 06:41 UTC | |
Re: Problems with 'use lib'
by esh (Pilgrim) on Aug 21, 2003 at 07:41 UTC | |
by Abigail-II (Bishop) on Aug 21, 2003 at 08:32 UTC | |
Re: Problems with 'use lib'
by shenme (Priest) on Aug 21, 2003 at 06:53 UTC | |
by esh (Pilgrim) on Aug 21, 2003 at 07:38 UTC | |
by shenme (Priest) on Aug 21, 2003 at 18:02 UTC | |
Re: Problems with 'use lib'
by The Mad Hatter (Priest) on Aug 21, 2003 at 12:04 UTC | |
Re: Problems with 'use lib'
by tcf22 (Priest) on Aug 21, 2003 at 06:53 UTC | |
Re: Problems with 'use lib'
by TomDLux (Vicar) on Aug 21, 2003 at 19:42 UTC | |
Re: Problems with 'use lib'
by hotshot (Prior) on Aug 21, 2003 at 07:19 UTC |
Back to
Seekers of Perl Wisdom