in reply to Re^2: GD and LWP giving 500 errors
in thread GD and LWP giving 500 errors
try
Notice i commented out the lwp use.#!/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 the change to a require in an eval. and x::x to prove it does fail right.#!/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>';
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 |