Hi choroba,
Probably in Perl::Critic::Policy::InputOutput::ProhibitInteractiveTest ?
Yes, that was exactly it!
It doesn't say why, but it offers an alternative.
I checked PBP and that's the source (Chapter 10. I/O, Interactivity). However, it doesn't really say anything is broken with -t, just that "-t *ARGV && -t *STDOUT" shouldn't be used to determine if the program is connected to a terminal, as in whether the user can be prompted interactively or not. Interestingly, the recommended alternative, IO::Interactive, uses -t itself :-)
Regards,
-- Hauke D
In reply to Re^13: Need sleep walking help
by haukex
in thread Need sleep walking help
by Todd Chester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |