in reply to Re: Using stdin only if there is input on it, but skipping it if there is no data
in thread Using stdin only if there is input on it, but skipping it if there is no data
Thanks. That seems to allow me to use redirects and does not interfere if there is not.
. . . } elsif ($#filenames < 0 && ! -t STDIN) { unshift(@filenames, '/dev/stdin') } . . .
It is done at the end of all the checking of sources, right before the data gets read.
|
|---|