http://qs321.pair.com?node_id=992087


in reply to Re: while loop question
in thread while loop question

Nice ideas. The trouble is, as well as wanting to be able to say last LINE (or LOOP) I want to be able to say  next LINE if $1 < $start_point; and your solution doesn't offer that possibility.

Replies are listed 'Best First'.
Re^3: while loop question
by RichardK (Parson) on Sep 06, 2012 at 14:56 UTC

    Of course it does :). It works in just the same way as using next/last in any nested loops.

    OUTER: { INNER: while(1) { next INNER if this(); last OUTER if that(); } }