This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
sub foo($_) {...} - change error message
authorDavid Mitchell <davem@iabyn.com>
Mon, 23 Sep 2019 14:22:11 +0000 (15:22 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 23 Sep 2019 14:27:43 +0000 (15:27 +0100)
commitf27832e79a0b43f3b2bded8020491011faa617c7
tree819a69dabe54b50728fd6565295af1cee9815ee7
parent4df857782a14d0973f58f6a629019d29259b2aad
sub foo($_) {...}  - change error message

When using one of the globals like $_ or @_ in a subroutine signature,
the error message was misleading:

    Can't use global $_ in "my"

This commit changes it to:

    Can't use global $_ in subroutine signature
op.c
pod/perldiag.pod
t/op/signatures.t