Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-20 11:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found