![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^3: detect input available from command lineby Eliya (Vicar) |
on Mar 10, 2011 at 22:02 UTC ( #892545=note: print w/replies, xml ) | Need Help?? |
You could test
(but any non-input file arguments would need to be removed from @ARGV first, of course) This should work with input file arguments on the command line, heredoc input (<<), input redirect (<), and piping into the program (|). Update: actually, I think you don't even need the eof().
In Section
Seekers of Perl Wisdom
|
|