in reply to Re: Waiting for file creation
in thread Waiting for file creation

Not really help to your problem, just a few comments:

  1. You do not have
    use strict; use warnings;
  2. The code
    @logs = <@ARGV>;
    is supposed to glob the parameters (expand *.txt to the list of files that match that wildcard) right? You might like G better.

  3. @tokens = split("\t",$currentLine); my @temp = ($tokens[1], $tokens[2], $tokens[3], $tokens[4]); $reports{$tokens[0]}=\@temp; my @data=(); $results{$tokens[0]}=\@data;
    would be better writen like this:
    my ($rep, @tokens) = split("\t",$currentLine); $reports{$rep}=\@tokens; $results{$rep}=[];
  4. foreach $logfile(@logs) should be foreach my $logfile(@logs). The same for other loops.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature