in reply to Outputting to browser vs DOS...how can you tell?
-t tells you if a filehandle is tied to a tty. Now I don't know what happens during forking and the like, but the above usually works ;)How do I find out if I'm running interactively or not? Good question. Sometimes -t STDIN and -t STDOUT can give clues, someti +mes not. if (-t STDIN && -t STDOUT) { print "Now what? "; }
| ______crazyinsomniac_____________________________ Of all the things I've lost, I miss my mind the most. perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;" |
|
|---|