From: Rafael Garcia-Suarez Date: Mon, 1 Jun 2009 14:46:42 +0000 (+0200) Subject: Minor doc fix for the smart table legend (clarify the "Object" entry). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6ebb5120dc80740c6aa629eb475e186a4fa19f8;p=p5sagit%2Fp5-mst-13.2.git Minor doc fix for the smart table legend (clarify the "Object" entry). --- diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index b4eff36..2ba30d8 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -688,13 +688,13 @@ that applies determines the match behaviour (which is thus mostly determined by the type of the right operand). Note that the smart match implicitly dereferences any non-blessed hash or array ref, so the "Hash" and "Array" entries apply in those cases. (For blessed references, the -"Any" entry apply.) +"Object" entries apply.) $a $b Type of Match Implied Matching Code ====== ===== ===================== ============= Any undef undefined !defined $a - Any Object invokes ~~ overloading on $object, or dies + Any Object invokes ~~ overloading on $object, or dies Hash CodeRef sub truth for each key[1] !grep { !$b->($_) } keys %$a Array CodeRef sub truth for each elt[1] !grep { !$b->($_) } @$a @@ -722,7 +722,6 @@ and "Array" entries apply in those cases. (For blessed references, the Num numish[4] numeric equality $a == $b Any Any string equality $a eq $b - 1 - empty hashes or arrays will match. 2 - that is, each element smart-matches the element of same index in the other array. [3]