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 *.*

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");
T1:*.*

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.


In reply to ARGV *.* importing problems by Monkomatic

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.