perldelta for new length() warning
authorFather Chrysostomos <sprout@cpan.org>
Sat, 19 Nov 2011 01:49:35 +0000 (17:49 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 19 Nov 2011 01:49:35 +0000 (17:49 -0800)
pod/perldelta.pod

index a5fafec..be2ee65 100644 (file)
@@ -371,6 +371,13 @@ XXX L<message|perldiag/"message">
 
 =item *
 
+L<length() used on %s|perldiag/length() used on %s>
+
+This new warning occurs when C<length> is used on an array or hash, instead
+of C<scalar(@array)> or C<scalar(keys %hash)>.
+
+=item *
+
 L<$[ used in %s (did you mean $] ?)|perldiag/"$[ used in %s (did you mean $] ?)">
 
 This new warning exists to catch the mistaken use of C<$[> in version