foreach $argument (@ARGV) { # Do something with $argument }