On Thu, 7 Dec 2017 11:50:17 -0800
SSC_perl <[email protected]> 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;
Hi Frank!
What does:
say "@INC";
say if you add it to the script?
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
The Case for File Swapping - http://shlom.in/file-swap
Real men don’t listen to sentences that start with “Real men don’t”.
— http://whatsup.org.il/article/6023
Please reply to list if it's a mailing list post - http://shlom.in/reply .
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/