My advice is is to learn event based programming and switch over to a fully async operation based on call backs and promises.
For example what you are doing is very easy to achieve with:
AnyEvent AnyEvent::HTTP Promise
In reply to Re: LWP::UserAgent non-blocking calls
by sectokia
in thread LWP::UserAgent non-blocking calls
by cavac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |