BEGIN { die "No input given and STDIN is tty" if -t STDIN and !@ARGV } [download]
In reply to Re: How to Test For Empty Piped Input by etj in thread How to Test For Empty Piped Input by roho