I can't claim I really understand what your code is doing but I tried it...

With perlml in the shebang, it gave a 500 error.

With just perl, it gave
Testing<pre> new to %INC from adding use Data::Dumper Carp.pm => /usr/share/perl5/vendor_perl/Carp.pm Data/Dumper.pm => /usr/lib64/perl5/vendor_perl/Data/Dumper.pm Exporter.pm => /usr/share/perl5/vendor_perl/Exporter.pm XSLoader.pm => /usr/share/perl5/XSLoader.pm bytes.pm => /usr/share/perl5/bytes.pm constant.pm => /usr/share/perl5/vendor_perl/constant.pm overload.pm => /usr/share/perl5/overload.pm overloading.pm => /usr/share/perl5/overloading.pm vars.pm => /usr/share/perl5/vars.pm warnings/register.pm => /usr/share/perl5/warnings/register.pm </pre> <pre> eval use ERROR:Can't locate CGI/Carp.pm in @INC (@INC contains: /usr/l +ocal/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl +/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at +(eval 2) line 1. BEGIN failed--compilation aborted at (eval 2) line 1. new to %INC from adding use CGI::Carp qw(fatalsToBrowser) </pre> <pre> eval use ERROR:Can't locate GD.pm in @INC (@INC contains: /usr/local/l +ib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/s +hare/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval +3) line 1. BEGIN failed--compilation aborted at (eval 3) line 1. new to %INC from adding use GD </pre> <pre> new to %INC from adding use LWP::UserAgent Config.pm => /usr/lib64/perl5/Config.pm Exporter/Heavy.pm => /usr/share/perl5/vendor_perl/Exporter/Heavy. +pm Fcntl.pm => /usr/lib64/perl5/Fcntl.pm HTTP/Date.pm => /usr/share/perl5/vendor_perl/HTTP/Date.pm HTTP/Headers.pm => /usr/share/perl5/vendor_perl/HTTP/Headers.pm HTTP/Message.pm => /usr/share/perl5/vendor_perl/HTTP/Message.pm HTTP/Request.pm => /usr/share/perl5/vendor_perl/HTTP/Request.pm HTTP/Response.pm => /usr/share/perl5/vendor_perl/HTTP/Response.p +m HTTP/Status.pm => /usr/share/perl5/vendor_perl/HTTP/Status.pm LWP.pm => /usr/share/perl5/LWP.pm LWP/MemberMixin.pm => /usr/share/perl5/LWP/MemberMixin.pm LWP/Protocol.pm => /usr/share/perl5/LWP/Protocol.pm LWP/UserAgent.pm => /usr/share/perl5/LWP/UserAgent.pm Storable.pm => /usr/lib64/perl5/vendor_perl/Storable.pm Time/Local.pm => /usr/share/perl5/vendor_perl/Time/Local.pm URI.pm => /usr/share/perl5/URI.pm URI/Escape.pm => /usr/share/perl5/URI/Escape.pm </pre> <pre> eval use ERROR:Can't locate x/x.pm in @INC (@INC contains: /usr/local/ +lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/ +share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval + 7) line 1. BEGIN failed--compilation aborted at (eval 7) line 1. new to %INC from adding use x::x </pre>

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.