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:
example:
In this case @ARGV is empty but there is still something to read. How would I detect this?$ ./testprog -t testing@testing.com -s test5 <<EOT; > stuff > typed > in > here > EOT
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: detect input available from command line
by Eliya (Vicar) on Mar 10, 2011 at 22:02 UTC | |
Re^3: detect input available from command line
by jwkrahn (Monsignor) on Mar 11, 2011 at 03:40 UTC |
In Section
Seekers of Perl Wisdom