if (@ARGV) { # you have command line args } else { # ya don't! }