This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
055cc54
)
perlsyn: equivalent code for HASH ~~ ARRAY
author
brian d foy
<brian.d.foy@gmail.com>
Sat, 7 Jun 2008 23:59:22 +0000
(
00:59
+0100)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Sun, 8 Jun 2008 14:45:20 +0000
(14:45 +0000)
Message-ID: <
070620082359221579
%brian.d.foy@gmail.com>
p4raw-id: //depot/perl@34027
pod/perlsyn.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlsyn.pod
b/pod/perlsyn.pod
index
44c4f1a
..
ec86510
100644
(file)
--- 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}