Subject: | ProhibitPerl4PackageNames versus $' |
Date: | Wed, 21 May 2008 08:44:49 +1000 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With the debian packaged perlcritic 1.082 and perl 5.10; a file foo.pl
containing just
$'
put through "perlcritic -2 foo.pl" produces (among other criticisms),
"$'" uses the obsolete single quote package separator." at line 1, column 1. Use double colon (::) to separate package name components instead of single quotes (').. (Severity: 2)
I was meaning the postmatch special variable here, not a perl4-ism.
Perhaps $' could be allowed (or if not then a further explanation in the
pod or the message).