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.
In reply to Re: next in continue doesn't DWIM
by hdb
in thread next in continue doesn't DWIM
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |