summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-04-12 11:50:06 -0600
committerKarl Williamson <public@khwilliamson.com>2011-04-12 12:34:50 -0600
commit9442e3b8d7c9c3e8121cad5682064cfc3e185f32 (patch)
tree84f2c601cea8ab521cde26e9e8d06affd5553cc4 /pod/perldiag.pod
parent0c96c706fef52effd833861ae408c0cedef51125 (diff)
downloadperl-9442e3b8d7c9c3e8121cad5682064cfc3e185f32.tar.gz
regcomp: Improve error message for (?-d:...)
As agreed, this improvement is going into 5.14. A customized message is output, instead of a generic one.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod10
1 files changed, 8 insertions, 2 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index e9c5543871..88c55a8e68 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4021,6 +4021,13 @@ expression compiler gave it.
(F syntax, regexp) The regular expression pattern had too many occurrences
of the specified modifier. Remove the extraneous ones.
+=item Regexp modifier "%c" may not appear after the "-"
+
+(F regexp) Turning off the given modifier has the side effect of turning
+on another one. Perl currently doesn't allow this. Reword the regular
+expression to use the modifier you want to turn on (and place it before
+the minus), instead of the one you want to turn off.
+
=item Regexp modifiers "/%c" and "/%c" are mutually exclusive
(F syntax, regexp) The regular expression pattern had more than one of these
@@ -4168,8 +4175,7 @@ where the problem was discovered. See L<perlre>.
<-- HERE shows in the regular expression about where the problem was
discovered. This happens when using the C<(?^...)> construct to tell
Perl to use the default regular expression modifiers, and you
-redundantly specify a default modifier; or having a modifier that can't
-be turned off (such as C<"p"> or C<"l">) after a minus. For other
+redundantly specify a default modifier. For other
causes, see L<perlre>.
=item Sequence \%s... not terminated in regex; marked by <-- HERE in m/%s/