3 ms·
In Perl, "next" can take a label: LOOP: while (foo()) { while (bar()) { if (baz()) { next LOOP; } } }
by jstanley 5y ago
In Perl, "next" can take a label:
LOOP:
while (foo()) {
while (bar()) {
if (baz()) { next LOOP; }
}
}
- Viliam1234 5y agoSimilar in Java (it is called "break", and the optional label is written the same way), although I'd guess most Java developers don't know about it.