Subject: | Parse fails with perl 5.20 and a function signature with default reference |
The following valid perl fails:
#!/usr/bin/env perl
use v5.020; #includes strict
use warnings;
use experimental 'signatures';
setidentifier();
exit;
sub setidentifier($href={}) {
say 'hi';
}
There is no previous '(' to match a ')' on line 13
13: sub setidentifier($href={}) {
Subject: | buginsignatures.pl |
#!/usr/bin/env perl
use v5.020; #includes strict
use warnings;
use experimental 'signatures';
# no warnings "experimental::signatures";
setidentifier();
exit;
sub setidentifier($href={}) {
say 'hi';
}