Check input device is a terminal: Difference between revisions

Content added Content deleted
(→‎{{header|Rust}}: Switched STDOUT to STDIN)
Line 170: Line 170:


=={{header|Perl 6}}==
=={{header|Perl 6}}==
{{works with|Rakudo|2015.12}}
<lang perl6>say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";</lang>
<lang perl6>say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";</lang>