From 4d910168b305fc1c618fb5716bf88114836efae2 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 16 Nov 2013 22:09:48 -0800 Subject: [PATCH] =?utf8?q?perldiag:=20Add=20some=20=E2=80=98in=20regex?= =?utf8?q?=E2=80=99=20variants?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- pod/perldiag.pod | 9 +++++++++ t/porting/diag.t | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 2dc7fd6..9b85941 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4559,6 +4559,9 @@ expression compiler gave it. =item Regexp modifier "/%c" may appear a maximum of twice +=item Regexp modifier "%c" may appear a maximum of twice in regex; marked +by <-- HERE in m/%s/ + (F syntax, regexp) The regular expression pattern had too many occurrences of the specified modifier. Remove the extraneous ones. @@ -4572,11 +4575,17 @@ the minus), instead of the one you want to turn off. =item Regexp modifier "/%c" may not appear twice +=item Regexp modifier "%c" may not appear twice in regex; marked by <-- +HERE in m/%s/ + (F syntax, regexp) The regular expression pattern had too many occurrences of the specified modifier. Remove the extraneous ones. =item Regexp modifiers "/%c" and "/%c" are mutually exclusive +=item Regexp modifiers "%c" and "%c" are mutually exclusive in regex; +marked by <-- HERE in m/%s/ + (F syntax, regexp) The regular expression pattern had more than one of these mutually exclusive modifiers. Retain only the modifier that is supposed to be there. diff --git a/t/porting/diag.t b/t/porting/diag.t index 8c97688..4f44c29 100644 --- a/t/porting/diag.t +++ b/t/porting/diag.t @@ -571,9 +571,6 @@ POSIX syntax [%c %c] is reserved for future extensions in regex; marked by <-- H ptr wrong %p != %p fl=%x nl=%p e=%p for %d QUITing... Recompile perl with -DDEBUGGING to use -D switch (did you mean -d ?) -Regexp modifier "%c" may appear a maximum of twice in regex; marked by <-- HERE in m/%s/ -Regexp modifier "%c" may not appear twice in regex; marked by <-- HERE in m/%s/ -Regexp modifiers "%c" and "%c" are mutually exclusive in regex; marked by <-- HERE in m/%s/ Regexp *+ operand could be empty in regex; marked by <-- HERE in m/%s/ Reversed %c= operator %s: Can't parse EXE/DLL name: '%s' -- 2.7.4