in reply to Re^12: Need sleep walking help
in thread Need sleep walking help
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
|
|---|