I think the following code will help you
if (-t STDIN) { print "stdin is connected"; } else { print "stdin is not connected"; }
In reply to Re: STDIN connectivity
by Anonymous Monk
in thread STDIN connectivity
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |