#!/usr/local/opt/perl5.005_51/bin/perl # LIBS $ENV{'DTS_DIR'} = "/net/endeavor/users/DTS"; use lib qq($ENV{'DTS_DIR'}/common); # CONSTANTS use Constants qw($g_TestsDir $g_TestsLoc); my $workingDir = "$g_TestsDir/$g_TestsLoc"; my $runningDir = "$ENV{'DTS_DIR'}/testScripts/statistics"; When I try to run the following script I get the following errors: ------ Can't locate Constants.pm in @INC (@INC contains: ... /common /home/users/aco/Perl/lib/perl5/5.00551/sun4-solaris ..... /home/users/aco/Perl/lib/perl5/5.00551 /home/users/aco/Perl/lib/perl5/site_perl/5.00551/sun4-solaris... /home/users/aco/Perl/lib/perl5/site_perl/5.00551 .) at test.cgi line 8. BEGIN failed--compilation aborted at test.cgi line 8. From the error message above, I can see that the path /common was added to the @INC array instead of /net/endeavor/users/DTS/common. The value of $ENV{'DTS_DIR'} appears to be an empty string when it should have a value of "/net/endeavor/users/DTS" when it is used by the lib module. Any help would be appreciated.