if ( @ARGV ) { while (<>) { } } else { # do something else } [download]
In reply to Re: detect input available from command line by jwkrahn in thread detect input available from command line by mifflin