Subject: | ')' in comment can terminate parameter list? |
$ cat wtf
#!perl
use Method::Signatures;
func wtf(
$x, # ok)
$y
) {}
__END__
$ perl wtf
Use of uninitialized value $sigil in pattern match (m//) at
/home/mauke/usr/lib/perl5/site_perl/5.16.2/Method/Signatures.pm line 658.
Use of uninitialized value $name in substitution (s///) at
/home/mauke/usr/lib/perl5/site_perl/5.16.2/Method/Signatures.pm line 659.
Use of uninitialized value $name in substitution (s///) at
/home/mauke/usr/lib/perl5/site_perl/5.16.2/Method/Signatures.pm line 660.
Use of uninitialized value $sigil in concatenation (.) or string at
/home/mauke/usr/lib/perl5/site_perl/5.16.2/Method/Signatures.pm line 663.
Use of uninitialized value $name in concatenation (.) or string at
/home/mauke/usr/lib/perl5/site_perl/5.16.2/Method/Signatures.pm line 663.
Use of uninitialized value in pattern match (m//) at
/home/mauke/usr/lib/perl5/site_perl/5.16.2/Method/Signatures.pm line 845.
Type of arg 1 to main::func must be block or sub {} (not scalar
dereference) at wtf line 7, near "$y
) "
Can't use an undefined value as a subroutine reference at
/home/mauke/usr/lib/perl5/site_perl/5.16.1/i686-linux/Devel/Declare/MethodInstaller/Simple.pm
line 42.