in reply to Re: "last" not really outside loop block
in thread "last" not really outside loop block

Yeah , that's the work-around I've used also , I didn't like it , actually I hate it , but I'll have to stick with it

  • Comment on Re^2: "last" not really outside loop block

Replies are listed 'Best First'.
Re^3: "last" not really outside loop block
by ikegami (Patriarch) on Jun 22, 2009 at 16:15 UTC
    Yeah, me too. I don't know why I suggested it. Another generic solution is to change the bottom tested loop into an infinite loop.
    do { ... next if ...; # XXX ... last if ...; # XXX ... } while cond();
    becomes
    for (;;) { # for ever ... next if ...; # OK ... last if ...; # OK ... last if !cond(); }