diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-07-08 14:42:39 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-09-15 22:45:01 -0700 |
commit | 4eb94d7caf2bf6cab2094f1c063ce07c6a4de765 (patch) | |
tree | 5f5b287754561edf6201cb52baec7c499e4d6951 /pod | |
parent | 251a11d5449ff64382e2f647582ee2cc4e3404e6 (diff) | |
download | perl-4eb94d7caf2bf6cab2094f1c063ce07c6a4de765.tar.gz |
Don’t say ‘variable &foo’ in warnings
It should be ‘subroutine &foo’. (It could be ‘subroutine foo’, but we
use both forms elsewhere, and &foo is the easier to implement, the &
already being contained in the pad name.)
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 6d4eea0b7a..a8749467f9 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4561,6 +4561,14 @@ was either never opened or has since been closed. stubs. Stubs should never be implicitly created, but explicit calls to C<can> may break this. +=item "%s" subroutine &%s masks earlier declaration in same %s + +(W misc) A "my" or "state" subroutine has been redeclared in the +current scope or statement, effectively eliminating all access to +the previous instance. This is almost always a typographical error. +Note that the earlier subroutine will still exist until the end of +the scope or until all closure referents to it are destroyed. + =item Subroutine %s redefined (W redefine) You redefined a subroutine. To suppress this warning, say |