in reply to LWP::UserAgent non-blocking calls

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

Replies are listed 'Best First'.
Re^2: LWP::UserAgent non-blocking calls
by cavac (Prior) on Jan 10, 2025 at 09:21 UTC

    I do a lot of "event based" programming and async stuff. But it is NOT always the best option. I work on a lot of stuff where things are required to happen in a very specific order to make sure data is consistent across multiple systems and complies with local financial law.

    Async operations have their uses, but they are not always the best solution.

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
    Also check out my sisters artwork and my weekly webcomics