J
Jennifer
Hello -
I've got several Perl scripts that use custom perl modules which are
called from routines that are in the same directory as the scripts.
For example dir.pl in folder dir references dir_utilities.pl.
I call them with a require at the top of the routine, e.g. require
'dir_utilities.pl';
This worked fine for a number of years and this morning, all my
scripts are erroring with this type of message: Can't locate
dir_utilities.pl in @INC (@INC contains: sys:\perl\lib .) at dir.pl
line 16.
Our web administrator says they haven't made changes to our Perl
install or the web server itself (we are running Perl 5 on a Novell
web server) and I haven't made any routine changes.
It looks as though when Perl is executing the script it is not reading
the local directory as it used to and therefore is not finding the
files there. The files do exist and are unchanged.
I tried adding this to see if I can get it to have the directory
reference:
BEGIN {
push ( @INC, 'sys:\perl\web\dir' );
}
This does stop the error for the require calls, but when other files
in the directory are referenced in the script (HTML templates used for
output, etc) it gives an error that it cannot find these, so it's like
it can find nothing from the directory where the script is.
Does anyone have any suggestions?
I've got several Perl scripts that use custom perl modules which are
called from routines that are in the same directory as the scripts.
For example dir.pl in folder dir references dir_utilities.pl.
I call them with a require at the top of the routine, e.g. require
'dir_utilities.pl';
This worked fine for a number of years and this morning, all my
scripts are erroring with this type of message: Can't locate
dir_utilities.pl in @INC (@INC contains: sys:\perl\lib .) at dir.pl
line 16.
Our web administrator says they haven't made changes to our Perl
install or the web server itself (we are running Perl 5 on a Novell
web server) and I haven't made any routine changes.
It looks as though when Perl is executing the script it is not reading
the local directory as it used to and therefore is not finding the
files there. The files do exist and are unchanged.
I tried adding this to see if I can get it to have the directory
reference:
BEGIN {
push ( @INC, 'sys:\perl\web\dir' );
}
This does stop the error for the require calls, but when other files
in the directory are referenced in the script (HTML templates used for
output, etc) it gives an error that it cannot find these, so it's like
it can find nothing from the directory where the script is.
Does anyone have any suggestions?