Why does my Perl program complain “Can't locate URI.pm in @INC”?

后端 未结 5 1282
臣服心动
臣服心动 2021-01-03 07:47

I\'m new to Perl. I get the following error when I run a script:

Can\'t locate URI.pm in @INC (@INC contains: /usr/local/packages/perl_remote/5.6.1/lib/5.6.1/i86pc         


        
5条回答
  •  渐次进展
    2021-01-03 08:21

    The array @INC contains the list of places to look for Perl scripts to be evaluated. Your script will not run because it is not in the @INC list. Either:

    1. Put the script in one of the @INC locations; or
    2. Add the location of the file to the $PATH environmental variable; or
    3. Specify the full path of the script when you are calling it.

提交回复
热议问题