>> I'm sure this has been answered before, but I can't seem to find an answer. >> >> Windows doesn't seem to want to expand wildcards before passing arguments to >> my script. For example, typing: >> >> fixNCcode P* >> >> Passes 'P*' to my script instead of all files that start with "P". >> >> Is there a workaround? How is this generally done? > > You have to use the glob function: > > my @files = glob $ARGV[0];
Thanks John and Jenda. This works for Windows, but does it break the script for use on Unix? Is there a check to see if the script is running on Windows before I do the glob? Thanks again. - Bryan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]