On this piece of code
$a = 3; do { last unless $a == 4; } while ( 1 );
I get Can't "last" outside a loop block at /tmp/test.pl line 3. Is this the expected behaviour for "last" ?
My perl version is v5.10.0 built for i486-linux-gnu-thread-multi
In reply to "last" not really outside loop block by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |