projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0587d
)
Thinko in given() description, found by chromatic
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Fri, 24 Jul 2009 07:26:52 +0000
(09:26 +0200)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Fri, 24 Jul 2009 07:26:52 +0000
(09:26 +0200)
pod/perlsyn.pod
patch
|
blob
|
history
diff --git
a/pod/perlsyn.pod
b/pod/perlsyn.pod
index
9212573
..
9aa8fbb
100644
(file)
--- a/
pod/perlsyn.pod
+++ b/
pod/perlsyn.pod
@@
-633,7
+633,7
@@
you want. For example you could write:
when (/^\d+$/ && $_ < 75) { ... }
Another useful shortcut is that, if you use a literal array
-or hash as the argument to C<
wh
en>, it is turned into a
+or hash as the argument to C<
giv
en>, it is turned into a
reference. So C<given(@foo)> is the same as C<given(\@foo)>,
for example.