Have you looked at Win32::Autoglob?
As a caveat, both, your solution and Win32::Autoglob use glob, which commonly breaks on directories with spaces in them unless special care is taken. Personally, I prefer the saner bsd_glob from File::Glob.
In reply to Re: Perl on windows, one-liners with wildcards/glob
by Corion
in thread Perl on windows, one-liners with wildcards/glob
by Yary
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |