in reply to exiting via next: Extra careful or just bitchy?
See "do" in perlfunc. Note also that the loop control statements described later will NOT work in this construct, because modifiers don't take loop labels. Sorry. You can always put another block inside of it (for "next") or around it (for "last") to do that sort of thing. For "next", just double the braces:
do {{ next if $x == $y; # do something here }} until $x++ > $z;
|
|---|