Subject: | subroutine defined despite syntax errors |
$ cat bug/syntax-errors-still-define-sub
#!perl
use Fun;
eval '(fun wtf() {}';
warn "eval failed: $@" if $@;
wtf();
print "alive\n";
__END__
$ perl bug/syntax-errors-still-define-sub
eval failed: syntax error at (eval 1) line 1, near "{}"
alive
Despite the syntax error &wtf is still defined and callable.