go ahead... be a heretic | |
PerlMonks |
Loading an array with file namesby insta.gator (Novice) |
on May 04, 2015 at 20:22 UTC ( [id://1125626]=perlquestion: print w/replies, xml ) | Need Help?? |
insta.gator has asked for the wisdom of the Perl Monks concerning the following question: PERL noob here. I need to load an array with file names produced from a wildcard search on a Windows box. I would like to pass the wildcard to the PERL script if possible. Not having luck. Here is what I have
I created using examples that I have found. I think that partially, my problem is with the wildcarding. This is what I would like to do: "perl loadfiles.pl testfile*.dat". Assuming I have testfile1,2,3,4.dat in the directory, it would load the array with these file names. Any help would be greatly appreciated!
Back to
Seekers of Perl Wisdom
|
|