A couple options come to mind:

  1. There is probably no need to go to the absolute latest version, so look through the archived versions of LWP and see when the proxy auth code was added (the Changes file should help). Perhaps there exists an older version that still works properly with your version of perl.
  2. Or install a copy of perl in your homedir and use it instead of the system perl.
  3. Or like you mention, install a new version of LWP in a nonstandard dir and throw a 'use lib qw(/path/to/lwpdir/);'. As for the changes that you are likely to need to make, what you mention sounds OK, but you shouldn't need to turn off strict. Just change all 'our $globalvar' vars to 'use vars qw($globalvar);'. 'our' and 'use vars' are not identical, but should be close enough.
  4. Or if none of those are workable, then ditch LWP and launch an external program like 'wget' instead. Not ideal or efficient for that matter, but it should work.

In reply to Re: Ancient LWP and proxies by cees
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.