|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: How to expand wildcard arguments supplied to programs with perl on windows?by atcroft (Monsignor) |
| on Aug 17, 2012 at 02:02 UTC ( #987902=note: print w/ replies, xml ) | Need Help?? |
|
I don't know about the Wild.pm module you were using, but I was able to get results similar to what you indicated you expected with the following code:
This was called from a Windows Command Prompt using Strawberry Perl as follows: perl test.pl *.txt I used a loop for @ARGV to allow for multiple patterns to be specified on the command line, to give a little extra flexibility. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||