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

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

Bug Information
Severity: Normal
Broken in: 1.118
Fixed in: (no value)



Subject: RequireCheckedSyscalls false positive for opening from a string
Download (untitled) / with headers
text/plain 399b
Recent perl versions let you read from a string with a filehandle: open my $fh, '<', \$scalar; This open call never returns false - even if $scalar is undef you still get a filehandle. So the usual '... or die' is not needed, indeed, it is misleading because it gives the impression that open() will return false on errors. Perlcritic should not flag a 'Return value of "open" ignored' here.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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