foreach my $arg (@ARGV) { foreach (glob $arg) { print; } } #### foeach (map { glob } @ARGV) { print; }