diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-02-14 14:33:43 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-02-14 16:19:07 -0800 |
commit | 5fecf43045269a8bd971aa4bf5da1e80885c63c2 (patch) | |
tree | 28a1ec356a1e6ea339830445a341b00e1dad3f99 /pod/perldiag.pod | |
parent | f01cd1909fe9a5030e50a4e2ff4a0994eb251b46 (diff) | |
download | perl-5fecf43045269a8bd971aa4bf5da1e80885c63c2.tar.gz |
perldiag: Expand the ‘Unknown switch condition’ description
Actually, I’m abbreviating much of the existing text, but there are so
many possible conditions now it seems like a good idea.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 5e2d0a1c36..b0d7a9b8bc 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4745,11 +4745,17 @@ subvert Perl's population of %ENV for nefarious purposes. =item Unknown switch condition (?(%s in regex; marked by <-- HERE in m/%s/ (F) The condition part of a (?(condition)if-clause|else-clause) construct -is not known. The condition may be lookahead or lookbehind (the condition -is true if the lookahead or lookbehind is true), a (?{...}) construct (the -condition is true if the code evaluates to a true value), or a number (the -condition is true if the set of capturing parentheses named by the number -matched). +is not known. The condition must be one of the following: + + (1) (2) ... true if 1st, 2nd, etc., capture matched + (<NAME>) ('NAME') true if named capture matched + (?=...) (?<=...) true if subpattern matches + (?!...) (?<!...) true if subpattern fails to match + (?{ CODE }) true if code returns a true value + (R) true if evaluating inside recursion + (R1) (R2) ... true if directly inside capture group 1, 2, etc. + (R&NAME) true if directly inside named capture + (DEFINE) always false; for defining named subpatterns The <-- HERE shows in the regular expression about where the problem was discovered. See L<perlre>. |