This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d8b4ed
)
perldelta for new length() warning
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 19 Nov 2011 01:49:35 +0000
(17:49 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 19 Nov 2011 01:49:35 +0000
(17:49 -0800)
pod/perldelta.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perldelta.pod
b/pod/perldelta.pod
index
a5fafec
..
be2ee65
100644
(file)
--- a/
pod/perldelta.pod
+++ b/
pod/perldelta.pod
@@
-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