Search results for "module:Perl::Critic::Policy::InputOutput::RequireCheckedOpen"
Perl::Critic::Policy::InputOutput::RequireCheckedOpen - Write < my $error = open $fh, $mode, $filename; > instead of < open $fh, $mode, $filename; >.
The perl builtin I/O function "open" returns a false value on failure. That value should always be checked to ensure that the open was successful. my $error = open( $filehandle, $mode, $filename ); # ok open( $filehandle, $mode, $filename ) or die "u...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
Perl::Critic::Policy::InputOutput::RequireCheckedSyscalls - Return value of flagged function ignored.
This performs identically to InputOutput::RequireCheckedOpen/Close except that this is configurable to apply to any function, whether core or user-defined. If your module uses Fatal, Fatal::Exception, or autodie then any functions wrapped by those mo...
PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC