diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-07-07 03:21:16 -0500 |
---|---|---|
committer | Florian Ragwitz <rafl@debian.org> | 2011-07-07 21:57:05 +0200 |
commit | 0d7c3953156bde2481c2a405e4f59e474fbf88df (patch) | |
tree | 208d818c640491e239104c3e6f9d39f7eb2c8b93 /pod | |
parent | 141b0385bfd827330c46a04c1a78404244e3e942 (diff) | |
download | perl-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.pod | 2 |
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. |