perldiag: Correct descr of ‘Expecting '(?flags:(?[...'’
authorFather Chrysostomos <sprout@cpan.org>
Fri, 7 Jun 2013 20:13:46 +0000 (13:13 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 8 Jun 2013 01:17:58 +0000 (18:17 -0700)
I did not realise at first that (?:(?[...])) is forbidden.

pod/perldiag.pod

index 21c0e91..86e1b46 100644 (file)
@@ -1917,10 +1917,10 @@ but omitted the C<")">.
 
 =item Expecting '(?flags:(?[...' in regex; marked by <-- HERE in m/%s/
 
-(F) The C<(?[...])> extended character class regular expression
-construct only allows character classes (including character class
-escapes like C<\d>), operators, and parentheses.  The one exception is
-C<(?:...)> or C<(?flags:...)> containing exactly one C<(?[...])> construct.
+(F) The C<(?[...])> extended character class regular expression construct
+only allows character classes (including character class escapes like
+C<\d>), operators, and parentheses.  The one exception is C<(?flags:...)>
+containing at least one flag and exactly one C<(?[...])> construct.
 This allows a regular expression containing just C<(?[...])> to be
 interpolated.  If you see this error message, then you probably
 have some other C<(?...)> construct inside your character class.  See