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
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.