>       I've run into another strange problem that I don't understand.
> Running the script below produces the output "Perl v5.26.1".  However, if
I
> add the line: use CGI::Carp qw(fatalsToBrowser);  it produces a 500 error.
>
>       On the shared server, this worked as it should, with
> 'fatalsToBrowser' showing any errors.

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?
Hmm, can you try

#!/home/user/perl5/perlbrew/perls/latest/bin/perl
use v5.26;
use warnings;
use diagnostics;

print "Content-type: text/html\n\n";
print `/home/user/perl5/perlbrew/perls/latest/bin/perl -c
/path/to/my/cgi-bin/file 2>&1` , "\n";

in a different  file?

a

On Thu, Dec 7, 2017 at 1:50 PM, SSC_perl <p...@surfshopcart.com> wrote:

>         I've run into another strange problem that I don't understand.
> Running the script below produces the output "Perl v5.26.1".  However, if I
> add the line: use CGI::Carp qw(fatalsToBrowser);  it produces a 500 error.
>
>         On the shared server, this worked as it should, with
> 'fatalsToBrowser' showing any errors.  But the VPS is just backwards -
> adding it crashes the script!  This actually happens with any module and,
> yes, they are installed:
>
> > cpanm install CGI::Carp
> install is up to date. (0.01)
> CGI::Carp is up to date. (4.38)
>
>         I have been fighting with this VPS setup for almost 2 weeks now
> just to get a functioning modern Perl environment and I'm about at my wits
> end.  It shouldn't be this hard.
>
>         I'd appreciate any help.
>
> Thanks,
> Frank
>
>
>
>
> #!/home/user/perl5/perlbrew/perls/latest/bin/perl
>
> use v5.26;
> use warnings;
> use diagnostics;
>
> print "Content-type: text/html\n\n";
> say 'Perl '. $^V;
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>


-- 

a

Andy Bach,
afb...@gmail.com
608 658-1890 cell
608 261-5738 wk

Reply via email to