Perl::...veTest(3pm)
π NAME π
Okay bestie, welcome to the Perl::...veTest(3pm) page from User Contributed Perl Documentation β yes, thatβs the header energy folded in right at the top. The policy itself is Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest, and her whole thing is: use prompt() instead of -t. Periodt. π«Ά
πΈ AFFILIATION πΈ
This Policy is part of the core Perl::Critic distribution. Sheβs core, sheβs here, she belongs. π
π¦ DESCRIPTION π¦
The -t operator is fragile and complicated. Like, itβs giving βwhy is this so messy?β energy. When you are testing whether STDIN is interactive, itβs much more robust to use well-tested CPAN modules like IO::Interactive. Thatβs the vibe check: donβt DIY the interactive check with -t; use the good tested module. β¨
π CONFIGURATION π
This Policy is not configurable except for the standard options. Thatβs it β no secret knobs, just the standard options and nothing more. π
β AUTHOR β
Chris Dolan <cdolan@cpan.org>
π COPYRIGHT π
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π Thatβs the whole page, bestie! Footer fairy says: perl v5.42.0, dated 2024-10-23, and it signs off as Perl::...veTest(3pm). Byeee! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Perl-Critic 1.156.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms