in reply to next in continue doesn't DWIM

Even if next did what you wanted, you would run into an infinite loop if both foo($try) and $try % 10 would be true.

Update: What I said above is not correct, see Eily's comment below.

Replies are listed 'Best First'.
Re^2: next in continue doesn't DWIM
by Eily (Monsignor) on Nov 14, 2013 at 12:15 UTC

    last's documentation states:

    The continue block, if any, is not executed:
    So a last statement always exits a loop if executed.

      You are correct, my statement is wrong, I confused myself.