Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id:
56626
Status:
rejected
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
JARIAALTO [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
(no value)
Fixed in:
(no value)



Subject: Magic punctuation variable (false positive)
Magic punctuation variable used at line 4, column 33. See page 79 of PBP. 1 #!/usr/bin/perl 2 use strict; 3 4 /^END.*?{(?<c>.*)}/sm and not $+{c} =~ /print_depends/: See New REGEXP features in Perl 5.10. The $+{c} is valid syntax.
Subject: Re: [rt.cpan.org #56626] Magic punctuation variable (false positive)
Date: Thu, 15 Apr 2010 08:09:02 -0500
To: bug-Perl-Critic@rt.cpan.org
From: Elliot Shank <perl@galumph.com>
On 4/15/10 6:13 AM, Jari Aalto via RT wrote:
Show quoted text
> See New REGEXP features in Perl 5.10. The $+{c} is valid syntax.
Perl::Critic does not check whether or not syntax is correct; perl handles that well enough by itself. If you wish to comply with this policy use %LAST_PAREN_MATCH instead of %+.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.