Subject: | Wishlist for Perl 5.20 signature compatibility: allow bare sigils |
For example:
method foo ($, $y) { ... }
This should be roughly equivalent to:
sub foo {
my $self = shift;
my $y = $_[1];
}
Note that $_[0] still exists in the @_ array but hasn't been assigned to any lexical.
Bare sigils `@` and `%` should be allowed as slurpies. In the case of `%` will die if the remaining argument list is not even-sized.