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

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

Bug Information
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().