So command.com doesn't glob:
C:\WINDOWS>perl -e "print qq(@ARGV)" *.txt
*.txt
Under Unixes, of course, you get "foo.txt bar.txt" etc. (Or you get an error: "No match".)
What does Cygwin do? And cmd.exe? Notably, is it safe for a program to assume that if $^O eq "MSWin32", @ARGV needs to be fed thru glob()?
Whinedows (Score:2)
That tip was brought to you by the good folks at perlmonks [perlmonks.org].
--Nat
Re:Whinedows (Score:1)
I note that glob() seems to use Unix globbing logic, not MSDOS globbing logic. I guess that's okay, even tho in theory one could type "*.[t-z]" and really mean all files ending in a literal ".[t-z]", as opposed to all files ending in a dot and any single letter t thru z.