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
In reply to Re: Problems with 'use lib'
by esh
in thread Problems with 'use lib'
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |