Hi All,
A user recently reported a path issue where they were receiving the following error when they tried to run a ProScript file:
-----------------begin error---------------------------------
ProScript execution started...
Can't locate ProScript.pm in @INC (@INC contains: .) at c:\first.pl line 3.
BEGIN failed--compilation aborted
ProScript execution Failed
----------------end error--------------------------------------
line 3 in the code contained the directive:
use ProScript;
If you used the default installation of Perl, placing the following code snippet at the beginning of the suspect script fixes the issue quickly and without lengthy investigation of system paths:
BEGIN {
unshift(@INC, 'C:/perl/lib');
unshift(@INC, 'C:/perl/site/lib');
unshift(@INC, '.');
}