#!/usr/bin/perl use strict; grep { NUM: for(0 .. $_) { last NUM if $_ > 3; } } 1 .. 10; #### syntax error at ./test.pl line 4, near "NUM:" syntax error at ./test.pl line 8, near "}" Execution of ./test.pl aborted due to compilation errors. #### #!/usr/bin/perl use strict; grep { 1; NUM: for(0 .. $_) { last NUM if $_ > 3; } } 1 .. 10;