Subject: | RequireInterpolationOfMetachars allow double backslashes |
Date: | Sun, 17 Aug 2008 11:51:59 +1000 |
To: | bug-perl-critic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Where RequireInterpolationOfMetachars warns about '\t' it also warns
about a correctly escaped '\\t'.
perlcritic --single-policy=RequireInterpolation metatab.pl
=>
String *may* require interpolation at line 1, column 11. See page 51 of PBP. (Severity: 1)
I guess there's a chance you've miscounted your backslashes, but I think
the default could be to take doubled backslashes at face value and
consider them correct. So the warning would be only for '\t' and
similar with an odd number of preceding backslashes.
Maybe a pattern for that, along the lines of other
ProhibitInterpolation, could be like
(^|[^\\])\\(\\\\)*[tnrf...
Message body is not shown because sender requested not to inline it.