Test whether program is interactive or not
Author: stmuk
Test whether program is interactive or not running from terminal or in batch mode (like cron on UNIX)
Source code: 15-02-test-interactive-program.p6
#!/usr/bin/env perl6 use v6; sub I-am-interactive { return $*IN.t && $*OUT.t; }