in reply to Re: "shift" not working as expected
in thread "shift" not working as expected

Perhaps to clarify my "real intention" even further than my previous reply, I'm planning to loop through an array of offset counts so that I can use AnyHTTP to upload blocks of a large file to a REST API in parrallel.

Replies are listed 'Best First'.
Re^3: "shift" not working as expected
by LanX (Saint) on Mar 21, 2016 at 11:35 UTC
    Unfortunately I'm not qualified to talk about AnyEvent et. al.

    Your code looked strange because of all the closures, but in the case of defining simultaneous call backs this looks like the way to go. :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!