Subject: | trailing commas in parameter list not allowed |
$ cat bug/trailing-comma
#!perl
use Fun;
fun foo($x, ) {}
__END__
$ perl bug/trailing-comma
syntax error at bug/trailing-comma line 3.
It would be nice if a trailing comma was accepted in parameter lists,
especially for things like:
fun foo(
$x, # description 1
$y, # description 2
) {
...
}