This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document warning on previous declaration of 'field' variable
authorJames E Keenan <jkeenan@cpan.org>
Sun, 31 Dec 2023 13:44:08 +0000 (08:44 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Sun, 31 Dec 2023 15:11:07 +0000 (10:11 -0500)
Fixes GH #21783.

pod/perldiag.pod

index 71fd337..7d4f653 100644 (file)
@@ -8034,8 +8034,8 @@ for details. You may silence this warning with the following:
 
 =item "%s" variable %s masks earlier declaration in same %s
 
-(W shadow) A "my", "our" or "state" variable has been redeclared in the
-current scope or statement, effectively eliminating all access to the
+(W shadow) A "my", "our", "state" or "field" variable 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 variable will still exist until the end of the scope
 or until all closure references to it are destroyed.