Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: GD and LWP giving 500 errors

by huck (Parson)
on Mar 16, 2017 at 23:39 UTC ( #1184942=note: print w/replies, xml ) Need Help??


in reply to Re^2: GD and LWP giving 500 errors
in thread GD and LWP giving 500 errors

try

#!/usr/bin/perlml use CGI::Carp qw(fatalsToBrowser); print "content-type: text/plain\n\nTesting"; #use LWP::UserAgent; use Data::Dumper; print '<pre>'; print Dumper(\%ENV); print Dumper(\@INC); print Dumper(\%INC); print '</pre>';
Notice i commented out the lwp use.

if that works then try
#!/usr/bin/perlml use CGI::Carp qw(fatalsToBrowser); use Data::Dumper; print "content-type: text/plain\n\nTesting"; print '<pre>'; eval {require LWP::UserAgent; } ; print 'possible require ERROR:'.$@."\n" if ($@); eval {require x::x; } ; print 'possible require ERROR:'.$@."\n" if ($@); print Dumper(\%ENV); print Dumper(\@INC); print Dumper(\%INC); print '</pre>';
notice the change to a require in an eval. and x::x to prove it does fail right.

edit: dayum forgot "use Data::Dumper;"

Replies are listed 'Best First'.
Re^4: GD and LWP giving 500 errors
by Mr. Muskrat (Canon) on Mar 17, 2017 at 14:09 UTC

    HTML won't render if you use a text/plain content type.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1184942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2019-09-16 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (196 votes). Check out past polls.

    Notices?