http://www.perlmonks.org?node_id=1185016


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

If you want to try again under perlml strike the following line

use strict; use warnings;
those are the only non evaled use statments. if it works, whew.

otherwise it looks like LWP came in, but CGI/Carp and GD didnt

you can strike addin('x::x',1); too. that was just there to display how a nonfound module would behave, and you got those.

You could try adding addin('LWP::Simple',1); to see if it can find that.

What it is doing is running the use statments under an eval. eval will trap the die preventing the script from issueing an error at that point and dieing. Since dieing means no output is sent back thats why you got the 500. It also lists all the modules added by that use statment. Since one module can use many others it can be quite informative.