From: brian d foy Date: Sat, 7 Jun 2008 23:59:22 +0000 (+0100) Subject: perlsyn: equivalent code for HASH ~~ ARRAY X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d6db67f2d91e588a13d4c1b90d1af1054faf4d41;p=p5sagit%2Fp5-mst-13.2.git perlsyn: equivalent code for HASH ~~ ARRAY Message-ID: <070620082359221579%brian.d.foy@gmail.com> p4raw-id: //depot/perl@34027 --- diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 44c4f1a..ec86510 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -674,7 +674,7 @@ order, determines the match behaviour. Any Code[+] scalar sub truth $b->($a) Hash Hash hash keys identical [sort keys %$a]~~[sort keys %$b] - Hash Array hash slice existence grep {exists $a->{$_}} @$b + Hash Array hash slice existence @$b == grep {exists $a->{$_}} @$b Hash Regex hash key grep grep /$b/, keys %$a Hash Any hash entry existence exists $a->{$b}