unless (@ARGV) { # error } #### if (-t STDIN) { # STDIN is connected to the console }