(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:foreach my $arg (@ARGV) { foreach (glob $arg) { print; } }
And then the rest of code can plainly ignore what happened with no need of ad hoc interventions...BEGIN {@ARGV=map glob, @ARGV}
In reply to Re^2: using wildcard character * in perlscript command line
by blazar
in thread using wildcard character * in perlscript command line
by krusty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |