in reply to Test whether STDOUT is connected to a file
$ perl -le "warn t => -t STDOUT" t1 at -e line 1. $ perl -le "warn t => -t STDOUT" >2 t at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test whether STDOUT is connected to a file
by ikegami (Patriarch) on Aug 18, 2010 at 14:09 UTC |