Monkomatic has asked for the wisdom of the Perl Monks concerning the following question:
I know for a fact i got this to work sometime in my life. I remember doing it. But im beginning to think maybe it was a unix system because I cant seem to get to work on XP any help would be appreciated.
Simply trying to get all the file handles in the directory loaded into argv by using *.* to import all the file names.
c:>Program.pl *.*
T1:*.*use threads; use threads::shared; use Data::Types qw(:all); use Price_calc qw[ $stringsent $stringsentback @arraysent @arraysentba +ck @arraysentprice @arraysentbackprice]; use IO::Tee; # perl trackit.pl *.* # ========================================= Set changables my @threads; my $maxthreadama=4; # MAX NUMBER OF simultanous Lookup Calls my $keepgoing="keepgoing"; my @trackinglist;my @trackingfilelist;my @datain;my $filename; foreach $file (@ARGV) { if ($file =~ /txt/) {push (@trackinglist,$filename);} } print "@ARGV\n"; print "T1:@trackinglist \n"; system("pause");
Anyone have a clue? I cant find a solution on google because * doesnt search very well and asterisk is some kind of software or coding platform. Did try before asking here though.
Does anyone know a cpan module to load all directory filenames into a variable? i can do it that way i suppose. But seems like perl should do this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ARGV *.* importing problems
by Corion (Patriarch) on Apr 30, 2011 at 16:30 UTC | |
|
Re: ARGV *.* importing problems
by Util (Priest) on Apr 30, 2011 at 18:53 UTC | |
|
Re: ARGV *.* importing problems
by cdarke (Prior) on Apr 30, 2011 at 17:24 UTC | |
by choroba (Cardinal) on Apr 30, 2011 at 21:34 UTC | |
by cdarke (Prior) on May 02, 2011 at 06:53 UTC | |
by choroba (Cardinal) on May 02, 2011 at 12:59 UTC | |
by cdarke (Prior) on May 03, 2011 at 11:34 UTC | |
|
Re: ARGV *.* importing problems
by Anonymous Monk on Apr 30, 2011 at 16:55 UTC | |
|
Re: ARGV *.* importing problems
by Monkomatic (Sexton) on Apr 30, 2011 at 19:01 UTC |