summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-07-07 03:21:16 -0500
committerFlorian Ragwitz <rafl@debian.org>2011-07-07 21:57:05 +0200
commit0d7c3953156bde2481c2a405e4f59e474fbf88df (patch)
tree208d818c640491e239104c3e6f9d39f7eb2c8b93 /pod
parent141b0385bfd827330c46a04c1a78404244e3e942 (diff)
downloadperl-0d7c3953156bde2481c2a405e4f59e474fbf88df.tar.gz
fix smart match docs for lhs undef
undef ~~ 0 is false, but undef == 0 is true - this one is falling under the undef ~~ Any case, not the Any ~~ Num case.
Diffstat (limited to 'pod')
-rw-r--r--pod/perlsyn.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index a914f85ebf..702ebed929 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -820,9 +820,9 @@ C<grep> does not.
Any Regex pattern match $a =~ /$b/
Object Any invokes ~~ overloading on $object, or falls back:
+ undef Any undefined !defined($b)
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.