I can't see anything wrong with syntax. Of course you don't need the WID label (just like not need for the next's), but you probably already know that.
Update:I like Beth's suggestion more. Something is strange here that Perl is doing its best with, but not what was intended.
In reply to Re^3: Break perl foreach loop
by Marshall
in thread Break perl foreach loop
by pvecchio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |