in reply to Breaking out of a while loop: Is there a better way?

while (...) { if (matching) { # do stuff last; } }
see last