diff options
author | Dave Rolsky <autarch@urth.org> | 2009-10-30 11:09:08 -0500 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2009-10-30 12:44:51 -0400 |
commit | 8eb5594e5b00118ae265dfff7fa7bd96290d4ed3 (patch) | |
tree | 1b4f5f3be48ac8fead2dec1166752cfe67f6f628 /pod/perlre.pod | |
parent | 506098d45ac55c24cf52451800576cb7bcfccff9 (diff) | |
download | perl-8eb5594e5b00118ae265dfff7fa7bd96290d4ed3.tar.gz |
Clarify relationship of pattern modifiers and named subpatterns
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 49d44c0368..58c3dc73e2 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -703,6 +703,10 @@ will match C<blah> in any case, some spaces, and an exact (I<including the case> repetition of the previous word, assuming the C</x> modifier, and no C</i> modifier outside this group. +These modifiers do not carry over into named subpatterns called in the +enclosing group. In other words, a pattern such as C<((?i)(&NAME))> does not +change the case-sensitivity of the "NAME" pattern. + Note that the C<p> modifier is special in that it can only be enabled, not disabled, and that its presence anywhere in a pattern has a global effect. Thus C<(?-p)> and C<(?-p:...)> are meaningless and will warn |