in reply to Problems with 'use lib'
The thing is I'm initializing $projectLocation to the invironment variable if it exists, otherwise I initialize (in my development environment), on the production environment it doesn't exist so initialize it to another location (predifined one).Putting it all together I offer:
my $projectLocation; BEGIN { $projectLocation = $ENV{DEVLOCATION} || '/default/production/location'; } use lib $projectLocation;
-- Eric Hammond
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with 'use lib'
by Abigail-II (Bishop) on Aug 21, 2003 at 08:32 UTC |