Hi,

Inspired by the Advanced Perl Programming book, I'm trying to use a POE module for the first time. As part of my script I also want to download a small web page, so I'm trying to use LWP::Simple. When I run my script, it gets to the LWP::Simple::get call and hangs. I have to use task manager to kill it (the cmd prompt won't respond to Ctrl-C). I took out most of my code and reproduced the problem with this simple script:

my $url = "http://wfmu.org/listen.m3u?show=21788&archive=32709"; use LWP::Simple; print "getting $url ...\n"; my $content = LWP::Simple::get($url); die "Problem!" unless defined $content; print "content: $content\n"; use POE qw(Component::RSSAggregator); # bad line __END__ With "bad line" commented out, it works: F:\cgi\wfmu>perl testget.pl getting "http://wfmu.org/listen.m3u?show=21788&archive=32709" content: http://archive.wfmu.org:5555/archive/NU/nu070117.mp3 With "bad line" present, it hangs: F:\cgi\wfmu>perl testget.pl getting "http://wfmu.org/listen.m3u?show=21788&archive=32709"
It works if I just "use POE", so maybe it's specifically the PoCo::RSSAggregator module that's the problem.?

I've poked around in the module source a very little bit looking for the problem, but I didn't see anything. Being completely unfamiliar with how POE works, I thought I'd ask for help before spending a lot of time on something obvious that I might be overlooking.

Thanks for any suggestions,
Joe


In reply to POE::Component::RSSAggregator breaks LWP::Simple::get by blahblahblah

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.