You'd probably be better off checking that fileno( $fh ) == 1.
In reply to Re: Testing whether a file handle is attached to STDOUT
by BrowserUk
in thread Testing whether a file handle is attached to STDOUT
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |