I can see two strategies that might work here (although none I consider as particularly appealing.)

Strategy 1
Assuming that your old perl was installed under /usr/bin, /usr/lib/perl. Install a modern version of Perl, 5.8.2, say, under a different directory /usr/local/bin, /usr/local/lib/perl. So that you have two different perl environments on the same machine.

Then install the latest LWP modules under the new perl environment. Although that your kernel is old, but I think the latest Perl should still compile and work gracefully.

Strategy 2
The current version of LWP on CPAN is version 5.76, which requires perl 5.005 as minimum. You could download the source package and fudge the perl sources. Remove the require 5.005 constraint, run the test cases, and fix whatever error that shows up.



In a long run, you are much better off if you upgrade to later version of Perl, with modern libraries. Otherwise you will be missing a lot of new features and upgrades. Personally I would favour strategy 1, just give it a go and see, you never ever know if you never ever try.


In reply to Re: Ancient LWP and proxies by Roger
in thread Ancient LWP and proxies by mpolo

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.