in reply to Re: using wildcard character * in perlscript command line
in thread using wildcard character * in perlscript command line
(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 Section
Seekers of Perl Wisdom