in reply to Using stdin only if there is input on it, but skipping it if there is no data
First thing that comes to mind is if @ARGV were empty (you're given no filenames) then check if -t STDIN is true (meaning it's a tty device not a pipe).
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using stdin only if there is input on it, but skipping it if there is no data
by mldvx4 (Hermit) on Nov 18, 2020 at 08:53 UTC |