<?xml version="1.0" encoding="windows-1252"?>
<node id="425978" title="using wildcard character * in perlscript command line" created="2005-01-28 10:14:00" updated="2005-04-20 04:20:39">
<type id="115">
perlquestion</type>
<author id="99151">
krusty</author>
<data>
<field name="doctext">
The following works perfectly well to give me a list of all files in UNIX&lt;BR&gt;&lt;BR&gt;Execute from command line as "&gt; script.pl *"&lt;BR&gt;
&lt;CODE&gt;#!/usr/bin/perl -w

foreach (@ARGV){
   print;
}
&lt;/CODE&gt;&lt;BR&gt;This prints out&lt;CODE&gt;
doc1.tmp
doc2.tmp
doc3.tmp
&lt;/CODE&gt;&lt;BR&gt;but in windows&lt;BR&gt;&lt;CODE&gt;
*
&lt;/CODE&gt;&lt;BR&gt;
How should I be executing the script in windows XP cmd.exe with the wildcard?  &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
Thanks!&lt;BR&gt;
Kristina&lt;BR&gt;&lt;BR&gt;

&lt;b&gt;Update:&lt;/b&gt; It worked like a charm.  Thanks for your fast response Tanktalus and BrowserUk.</field>
</data>
</node>
