in reply to problem in output
for my $logFile ( glob("$logDir/${logPrefix}*") ) { open($log, "<", $logFile) or die "Can't open $logFile for reading."; open(FP_OUT,">total_transactions") or die "cannot create file total_tr +ansactions for writing"; }
This bit looks weird. How many log files do you think you'll be processing? You're opening multiple files on the same filehandle. Only the last one opened will be processed.
And the standard suggestions about adding strict and warnings apply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem in output
by namishtiwari (Acolyte) on Jun 29, 2009 at 14:22 UTC | |
by davorg (Chancellor) on Jun 29, 2009 at 14:48 UTC |