in reply to WIN32 File Globbing

I've tried your code and it worked with one modification. You want to change:
my $f2dir = "C:\\windows\\desktop\\tmp";
to:

 my $f2dir = "C:\\windows\\desktop\\tmp\\";

It should work fine after that.
Update:Oops, Graham beat me to it. :)