Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest - Use prompt() instead of -t.

Affiliation

       This Policy is part of the core Perl::Critic distribution.

Author

       Chris Dolan <cdolan@cpan.org>

Configuration

       This Policy is not configurable except for the standard options.

Description

       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.

Name

       Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest - Use prompt() instead of -t.

See Also