The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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; >. River stage three • 133 direct dependents • 408 total dependents

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. River stage three • 133 direct dependents • 408 total dependents

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
2 results (0.057 seconds)