Jump to content

Check input device is a terminal: Difference between revisions

m
→‎{{header|Raku}}: Fix code: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|Raku}}: Fix code: Perl 6 --> Raku)
Line 259:
<lang perl6>say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";</lang>
 
$ perl6raku istty.p6raku
Input comes from tty.
$ true | perl6raku istty.p6raku
Input doesn't come from tty.
 
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.