logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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