foreach my $argument (@ARGV) { ... do something with $argument ... }