in reply to detect input available from command line
if ( @ARGV ) { while (<>) { } } else { # do something else }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: detect input available from command line
by mifflin (Curate) on Mar 10, 2011 at 21:51 UTC | |
by Eliya (Vicar) on Mar 10, 2011 at 22:02 UTC | |
by jwkrahn (Abbot) on Mar 11, 2011 at 03:40 UTC |