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:
89190
Status:
new
Priority:
Low/Low
Queue:

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

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



Subject: InputOutput::RequireBriefOpen false positive
The following code triggers a false positive with the latest Perl::Critic (1.119): #!/usr/bin/perl use strict; use warnings; sub work () { my($path, $fh); $path = "/foo/bar"; open($fh, "<", $path) or die(); binmode($fh) or die(); generate($path, $fh); close($fh) or die(); } foo:7:5 Close filehandles as soon as possible after opening them [4@InputOutput::RequireBriefOpen] Older versions (e.g. 1.105) do not report any problem wrt open().


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.