I have often needed to use Perl in an MS Windows context. One real problem with is the MS shells (non)handling of wildcards.
For those that have not had the experience, the MS shells assume that the program will do globbing on wildcards. So if
you call your script with '*.txt' as an argument, you get one argument.
I have written several versions of this over the years. This is my current one. Hope it helps someone.