summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-01 12:28:04 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-07-01 12:28:04 +0200
commitfb51372e8e462d7f3320e8a1b91a913f976aae12 (patch)
treea6123ddad0e335ee368d524bcad78e628f526803 /pod/perlsyn.pod
parent9b5b006ca2dcfa112f22578f899526bce7d5e411 (diff)
downloadperl-fb51372e8e462d7f3320e8a1b91a913f976aae12.tar.gz
Make C<undef ~~ 0> and C<undef ~~ ""> not match (like in 5.10.0)
This makes ~~ commutative with regard to undef, and fixes an inconsistency, since C<undef ~~ [0]> was not matching, and ~~ should be distributive in this case.
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r--pod/perlsyn.pod1
1 files changed, 1 insertions, 0 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 2ba30d84c4..92125735a8 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -720,6 +720,7 @@ and "Array" entries apply in those cases. (For blessed references, the
Object Any invokes ~~ overloading on $object, or falls back:
Any Num numeric equality $a == $b
Num numish[4] numeric equality $a == $b
+ undef Any undefined !defined($b)
Any Any string equality $a eq $b
1 - empty hashes or arrays will match.