http://www.perlmonks.org?node_id=426207


in reply to Re: using wildcard character * in perlscript command line
in thread using wildcard character * in perlscript command line

foreach my $arg (@ARGV) { foreach (glob $arg) { print; } }
(Nah!) Since wildcard expansion "should" happen before the args are passed to the script, I like to do it all at once as early as possible:
BEGIN {@ARGV=map glob, @ARGV}
And then the rest of code can plainly ignore what happened with no need of ad hoc interventions...