I'm trying to build a little web-crawler using LWP, but the get method from LWP::Simple just won't work. I've written this little test program to try and work it out, but it's not helping.
use strict; use LWP::Simple; my $url = "http://kompas.com/kompas-cetak/0505/09/metro/index.htm"; my $conts = get $url or die "I canna do it Cap'n!\n"; print $conts;
It compiles and runs like this and just dies with the message with no errors about the package. The method just returns nothing. I'm running ActivePerl on Windows, which I think is contributing to the problem, but I can't figure out how. The Makefile.pl for LWP seemed to run fine. Can you see what's going wrong?

edit After finding the guide to ppm and trying to install the package that way I find that I get an error from ppm like this:
ppm> install LWP Error: No valid repositories Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad protocol 'tcp' +) Error: 500 Can't connect to ppm.ActiveState.com:80 (Bad protocol 'tcp' +)
What's going on here?

"We shall peck them to death tomorrow, my dear."

In reply to Problems with LWP by smocc

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.