summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-05-24 23:51:42 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-05-24 23:51:42 +0200
commit2c9d2554ad3b3d37d1c8b83cf0f3c4b4b99fde8b (patch)
tree478055ef6f793001bacf3869e457460532da243b /pod/perlsyn.pod
parent6f76d139d7a6eead1be43e6e20b74edbdac0e8ff (diff)
downloadperl-2c9d2554ad3b3d37d1c8b83cf0f3c4b4b99fde8b.tar.gz
Allow ~~ overloading on the left side, when the right side is a plain scalar
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 4302cf495f..20ec68e02b 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -717,6 +717,7 @@ and "Array" entries apply in those cases. (For blessed references, the
Array Regex array grep grep /$b/, @$a
Any Regex pattern match $a =~ /$b/
+ Object Any invokes ~~ overloading on $object, or falls back:
Any Num numeric equality $a == $b
Num numish[4] numeric equality $a == $b
Any Any string equality $a eq $b