http://qs321.pair.com?node_id=892543


in reply to Re: detect input available from command line
in thread detect input available from command line

What if the input is not coming from @ARGV but from stdin?
example:
$ ./testprog -t testing@testing.com -s test5 <<EOT; > stuff > typed > in > here > EOT
In this case @ARGV is empty but there is still something to read. How would I detect this?