say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";
$ raku istty.raku Input comes from tty. $ true | raku istty.raku Input doesn't come from tty.
Last updated 1 year ago