summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-03-01 10:03:25 -0700
committerKarl Williamson <public@khwilliamson.com>2011-03-01 10:35:01 -0700
commit3955e1a9ae24737181ef9e4daba13179b936e4c9 (patch)
tree899802803fbedc1df763df32053d6e3ac380f117 /pod/perldiag.pod
parent7bccef0b00916eda11696a7ea88cfd578df216cd (diff)
downloadperl-3955e1a9ae24737181ef9e4daba13179b936e4c9.tar.gz
toke.c: Raise error for multiple regexp mods
When the new regular expression modifiers being allowed in suffix-form were added on a very tight schedule, it was with the understanding that the error checking that only one can occur per regular experssion would be added later. This accomplishes that.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod12
1 files changed, 12 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index f5e115c8a2..5efd0952bc 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4015,6 +4015,18 @@ discovered.
(P) The regular expression engine got confused by what the regular
expression compiler gave it.
+=item Regexp modifier "/%c" may not appear twice
+
+(F syntax) The regular expression pattern had one of the
+mutually exclusive modifiers repeated. Remove all but one of the
+occurrences.
+
+=item Regexp modifiers "/%c" and "/%c" are mutually exclusive
+
+(F syntax) The regular expression pattern had more than one of the
+mutually exclusive modifiers. Retain only the modifier that is
+supposed to be there.
+
=item Regexp out of space
(P) A "can't happen" error, because safemalloc() should have caught it