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::ProhibitInteractiveTest"

Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest - Use prompt() instead of -t. River stage three • 133 direct dependents • 408 total dependents

The "-t" operator is fragile and complicated. When you are testing whether "STDIN" is interactive, It's much more robust to use well-tested CPAN modules like IO::Interactive....

PETDANCE/Perl-Critic-1.152 - 17 Oct 2023 04:09:08 UTC
1 result (0.078 seconds)