diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-10-30 06:18:20 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-10-30 16:54:17 -0700 |
commit | e37958c391a6e98df6ad46860e1c472070272046 (patch) | |
tree | f883a95da83f08c2ee97ae64897f5cc485f60da8 /t | |
parent | a9e3f35916a989e6c527206f43af85f49ef58cbb (diff) | |
download | perl-e37958c391a6e98df6ad46860e1c472070272046.tar.gz |
Eliminate ‘Can't use \1 to mean $1’ false positives
We need to check that the quote-like operator we are parsing is a sub-
stitution (not just any quote-like operator) and that we are parsing
the right-hand side.
Diffstat (limited to 't')
-rw-r--r-- | t/lib/warnings/toke | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/lib/warnings/toke b/t/lib/warnings/toke index eb918f1afd..02c6cccca4 100644 --- a/t/lib/warnings/toke +++ b/t/lib/warnings/toke @@ -304,6 +304,9 @@ You need to quote "ふれど" at - line 5. use warnings 'syntax' ; $_ = "ab" ; s/(ab)/\1/e; +s//\(2)/e; # should be exempt +s/${\2}//; # same here +()="${\2}"; # metoo no warnings 'syntax' ; $_ = "ab" ; s/(ab)/\1/e; |