Sometimes breaking a big program into smaller programs focused into doing one thing, can work nicely and be able to deal better with future long-calls. E.g. separate this call into a new script which does exactly that and when is done, saves the results in a redis db whose checking takes millis. Or use some kind of "bus" to connect them all. D-BUS for example.
Edit: additionally what LWP gets back is not a perl data structure or object, so you will not need to de/serialiase when passing that data around.
In reply to Re: LWP::UserAgent non-blocking calls
by bliako
in thread LWP::UserAgent non-blocking calls
by cavac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |