This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldiag: Add some ‘in regex’ variants
authorFather Chrysostomos <sprout@cpan.org>
Sun, 17 Nov 2013 06:09:48 +0000 (22:09 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 17 Nov 2013 21:08:45 +0000 (13:08 -0800)
pod/perldiag.pod
t/porting/diag.t

index 2dc7fd6..9b85941 100644 (file)
@@ -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.
index 8c97688..4f44c29 100644 (file)
@@ -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'