From 5fecf43045269a8bd971aa4bf5da1e80885c63c2 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Mon, 14 Feb 2011 14:33:43 -0800 Subject: [PATCH] =?utf8?q?perldiag:=20Expand=20the=20=E2=80=98Unknown=20sw?= =?utf8?q?itch=20condition=E2=80=99=C2=A0description?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Actually, I’m abbreviating much of the existing text, but there are so many possible conditions now it seems like a good idea. --- pod/perldiag.pod | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 5e2d0a1..b0d7a9b 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') true if named capture matched + (?=...) (?<=...) true if subpattern matches + (?!...) (?. -- 2.7.4