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

Owner: Nobody in particular
Requestors: LCONS [...]

Bug Information
Severity: (no value)
Broken in: 1.119
Fixed in: (no value)

Subject: InputOutput::RequireBriefOpen false positive
Download (untitled) / with headers
text/plain 466b
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 is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to