summaryrefslogtreecommitdiff
path: root/pod/perlre.pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-02-14 14:19:58 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-02-14 16:19:07 -0800
commitf01cd1909fe9a5030e50a4e2ff4a0994eb251b46 (patch)
tree57ff2d71770a850de96f517e33384300969a03cb /pod/perlre.pod
parentc2771421ee5b32bcb9f4a23b2874adf23f41627f (diff)
downloadperl-f01cd1909fe9a5030e50a4e2ff4a0994eb251b46.tar.gz
perlre: Clarify (?(...)|)
• Mention look-around assertions in the list • It’s the code block’s return value, not the block itself that is used
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r--pod/perlre.pod7
1 files changed, 6 insertions, 1 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod
index 7633c32cce..0175fbe023 100644
--- a/pod/perlre.pod
+++ b/pod/perlre.pod
@@ -1208,9 +1208,14 @@ Checks if the numbered capturing group has matched something.
Checks if a group with the given name has matched something.
+=item (?=...) (?!...) (?<=...) (?<!...)
+
+Checks whether the pattern matches (or does not match, for the '!'
+variants).
+
=item (?{ CODE })
-Treats the code block as the condition.
+Treats the return value of the code block as the condition.
=item (R)