As others said, the answer is yes. However this reminds me something interesting. do {} is not a loop structure.
use warnings; use strict; my $i; do { print ++$i; last if ($i == 10); } until (0);
When kyou run this code, it complaints that "Can't "last" outside a loop block at a.pl line 7.". However it still gives what you want, and prints the result "12345678910".
In reply to Re: Can a while loop be stopped with "last"?
by pg
in thread Can a while loop be stopped with "last"?
by stupidius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |