From: Rafael Garcia-Suarez Date: Sun, 24 May 2009 15:31:15 +0000 (+0200) Subject: Change the specs of %h~~%h to avoid mentioning ~~ recursively X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6f76d139d7a6eead1be43e6e20b74edbdac0e8ff;p=p5sagit%2Fp5-mst-13.2.git Change the specs of %h~~%h to avoid mentioning ~~ recursively --- diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 94a5677..4302cf4 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -700,7 +700,7 @@ and "Array" entries apply in those cases. (For blessed references, the Array CodeRef sub truth for each elt[1] !grep { !$b->($_) } @$a Any CodeRef scalar sub truth $b->($a) - Hash Hash hash keys identical [sort keys %$a]~~[sort keys %$b] + Hash Hash hash keys identical (every key is found in both hashes) Array Hash hash slice existence grep { exists $b->{$_} } @$a Regex Hash hash key grep grep /$a/, keys %$b undef Hash always false (undef can't be a key)