Skip Menu |

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: 44554
Status: resolved
Priority: 0/
Queue: Perl-Critic

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

Bug Information
Severity: Normal
Broken in: 1.098
Fixed in: 1.104



Subject: 2-arg open that is not criticized
I was writing 3-arg open check for Perl::MinimumVersion and decided to check one of test examples in perlcritic. For this program: use strict; open my $a,'testing' or die "error: ",$!; open (my $a,'testing') or die "error: ",$!; perlcritic complains only about second open. -- Alexandr Ciornii, http://chorny.net
On Wed Mar 25 08:06:50 2009, CHORNY wrote: Show quoted text
> I was writing 3-arg open check for Perl::MinimumVersion and decided to > check one of test examples in perlcritic. > > For this program: > use strict; > open my $a,'testing' or die "error: ",$!; > open (my $a,'testing') or die "error: ",$!; > > perlcritic complains only about second open. >
Proposed fix committed as SVN revision 3249. The problem appears to be that P::C::Utils function parse_arg_list() was not terminating the parse on encountering one of the low-precedence booleans. Tom Wyant
Subject: Re: [rt.cpan.org #44554] 2-arg open that is not criticized
Date: Tue, 25 Aug 2009 22:26:17 -0500
To: bug-Perl-Critic [...] rt.cpan.org
From: Elliot Shank <perl [...] galumph.com>
The fix for this was released in v1.104.