Support Forums

Welcome to Support Forums Sign in | Join | Help
in
Home Forums

Fending off path issues in ProScripts

Last post 07-07-2008, 9:04 AM by Chris. 0 replies.
Sort Posts: Previous
  • Fending off path issues in ProScripts

     07-07-2008, 9:04 AM

    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, '.');

        }

View as RSS news feed in XML