有人可以解释为什么下一个脚本不起作用吗?错误的原因是什么Label not found for "last SOME_BLOCK"
?
#!/usr/bin/perl
use v5.14;
SOME_BLOCK: {
alarm 1;
$SIG{ALRM} = sub {
last SOME_BLOCK;
};
my $count = 0;
while (1) {
$count += 1;
say $count;
}
};