Subject: | func keyword has wrong operator precedence |
$ cat bug/func-precedence
#!perl
use Method::Signatures::Simple;
my $refaddr = func ($x) { $x } + 0;
__END__
$ perl bug/func-precedence
Too many arguments for main::func at bug/func-precedence line 3, near "0;"
Execution of bug/func-precedence aborted due to compilation errors.
I expected this to do the equivalent of:
my $refaddr = sub { my ($x) = @_; $x } + 0;