|
|
| "be consistent" | |
| PerlMonks |
Re: Detecting interactive/non-interactive shell (Perl Cookbook)by ybiC (Prior) |
| on Jul 03, 2005 at 20:38 UTC ( #472070=note: print w/ replies, xml ) | Need Help?? |
|
As per brother mifflin above, from the Perl Cookbook 1st ed, pp 518, 519...
Use -t to test STDIN and STDOUT:
If you're on a POSIX system, test process groups:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||