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:
fa9b868
)
perldelta: tweak minor thinko
author
David Mitchell
<davem@iabyn.com>
Fri, 15 Jun 2012 10:40:18 +0000
(11:40 +0100)
committer
David Mitchell
<davem@iabyn.com>
Fri, 15 Jun 2012 11:16:23 +0000
(12:16 +0100)
pod/perldelta.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perldelta.pod
b/pod/perldelta.pod
index
b31643b
..
ebee21a
100644
(file)
--- a/
pod/perldelta.pod
+++ b/
pod/perldelta.pod
@@
-488,7
+488,7
@@
Lexical variables are now sane as regards scope, recursion and closure
behaviour. In particular, C</A(?{B})C/> behaves (from a closure viewpoint)
exactly like C</A/ && do { B } && /C/>, while C<qr/A(?{B})C/> is like
C<sub {/A/ && do { B } && /C/}>. So this code now works how you might
-expect, creating three regexes that match
1,2, and 3
:
+expect, creating three regexes that match
0, 1, and 2
:
for my $i (0..2) {
push @r, qr/^(??{$i})$/;