> On Dec 7, 2017, at 3:09 PM, Andy Bach <afb...@gmail.com> wrote:
> 
> Can you not look a the web server's error_log?  A 500 error would put the 
> perl error msg in there.  Have you tried just "use" a different module?  

        Those errors aren't appearing in the errors log in cPanel.  I couldn't 
find another error log in WHM.

> Hmm, can you try...

        I ran your script and, when I manually include the .cpanm directory, it 
returns:

/home/user/cgi-bin/test.pl syntax OK

otherwise, it returns:

Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp module) 
(@INC contains: 
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux 
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux 
/home/user/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at 
/home/user/cgi-bin/test.pl line 9. BEGIN failed--compilation aborted at 
/home/user/cgi-bin/test.pl line 9.


        Here's more info.  I ran the following command, which produced an error:

> perlbrew exec perl -e 'print $]'
Use of uninitialized value in list assignment at 
/home/user/perl5/perlbrew/bin/perlbrew line 2220.
perl-5.26.1
==========
5.026001

        Looks like this has been reported for a few years without a solution:

https://rt.cpan.org/Public/Bug/Display.html?id=111978

        Could this be part of the problem?  I'm running perlbrew 0.80.

Frank

P.S. Re-installing cpanm didn't solve the problem.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to