use File::Glob qw(bsd_glob); BEGIN { # expand all wildcards given on the command line @ARGV = map { bsd_glob $_ } @ARGV; };