Help for this page

Select Code to Download


  1. or download this
    if(-t STDOUT) {
        print "tty\n";
    } else {
        print "no tty\n";
    }