On Tue, Apr 3, 2012 at 10:18 PM, Nick Perez <n...@nickandperla.net> wrote: > At first glance without reading the documentation to this module, I > would say that this is wrong. Fetching the $url should be a > non-blocking action that you give it a postback (or configured > session/event to post) to notify you when a response is ready for > reading. There is a proper HTTP client for POE that gives you this > ability (albeit with a bit more verbosity). Take a look at > POE::Component::Client::HTTP and see if it better fits the bill for > what you need.
Gabor's usage is correct. The "POE" part in LWP::UserAgent::POE comes from the fact that $ua->get() actually calls $poe_kernel->run_one_timeslice() while waiting for data, allowing other POE events to be processed in the meantime.