<div>Windows (or more specifically Dos) doesn't expand the wild card to be the list of files, it instead passes the wildcard to the program. You would have to modify the perl script or create a batch script that ran through the files in the directory and passed them individually to your perl program.</div>
<div> </div>
<div>Here is something I found that might lead to some insight</div>
<div><a href="http://stackoverflow.com/questions/405652/passing-arguments-with-dos-wildcards-to-a-python-script">http://stackoverflow.com/questions/405652/passing-arguments-with-dos-wildcards-to-a-python-script</a><br><br>
</div>
<div class="gmail_quote">On Thu, Jan 22, 2009 at 1:43 PM, Joshua Johnson <span dir="ltr"><<a href="mailto:joshpauljohnson@gmail.com">joshpauljohnson@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Windows/Dos question here.<br><br>I have a perl script that takes arguments from the command line. In the Bash I can just do "myscript.pl *" which returns a list of all files in that directory to my script. In Dos, this script works, but you have to mention each file explicitly: "myscript.pl file1 file2 file3". If I do "myscript.pl *" it will actually look for a file called "*", which it can't find, and quits.<br>
<br>How can I use wildcards in Dos with this? I know it can be done as "dir *.txt" works as expected.<br><br>Thanks in advance,<br>Josh<br><br>_______________________________________________<br>nflug mailing list<br>
<a href="mailto:nflug@nflug.org">nflug@nflug.org</a><br><a target="_blank" href="http://www.nflug.org/mailman/listinfo/nflug">http://www.nflug.org/mailman/listinfo/nflug</a><br><br></blockquote></div><br><br clear="all"><br>
-- <br>Russell Harrington<br>Software Engineer<br>inLighten Inc.<br><a href="http://www.inlighten.net">http://www.inlighten.net</a><br><br>