Hi, I am new to Perl and have inherited a Perl module that currently runs fine on a HP Unix box with Perl 5.6.1. This Perl module uses Soap::Lite and HTTP: Cookies Perl packages and makes a call to a web service by passing in a xml message. I am trying to port this on a Linux with Red Hat 4.6 and Perl 5.8.6 already installed on the box and having a lot of difficulties in doing so.
When I tried to test this module, it complained about certain missing libraries messages similar to below:

fault_code -1 Can't locate HTML/HeadParser.pm in @INC (@INC contains: /opt/perl5/lib/5.8.6/i686-linux /opt/perl5/lib/5.8.6 /opt/perl5/lib/site_perl/5.8.6/i686-linux /opt/perl5/lib/site_perl/5.8.6 /opt/perl5/lib/site_perl .) at /opt/perl5/lib/site_perl/5.8.6/LWP/Protocol.pm line 47. Compilation failed in require at /opt/perl5/lib/site_perl/5.8.6/LWP/UserAgent.pm line 103.

To fix these, I downloaded the 5.8 version of

LWP package and LWP.pm

HTTP/config.pm

from CPAN and then copied these over. Our old server has these libraries already installed but with 5.6.1 Perl. Now I am running into another error

fault_code -1 500 Usage: $h->push_header($field, $val) at /opt/perl5/lib/5.8.6/MatcherClient.pm line 338

When I tried to step through the code, it goes through numerous lines of code and throws error at

[mSOAP::Trace::defaultlog(/opt/perl5/lib/site_perl/5.8.6/SOAP/Lite.pm:2388):

2388: printf STDERR "%s: %s\n", $caller, $msg; [4m DB<80> [m [1m
[mSOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server Error) Usage: $h->push_header($field, $val)

Content-Type: text/plain

Client-Date: Sun, 08 Feb 2009 04:41:36 GMT

Client-Warning: Internal response

I am not sure what exactly is causing this. Can someone please help? Thanks

In reply to Issue in migration of Perl code from 5.6.1 to 5.8.6 by ja3

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.