in reply to data manipulation
That's incomplete, as far as formatting the proper date and time, but it's a pretty good start.until (eof FILE) { for my $count (3, 2) { my @set = map scalar <FILE>, 1 .. $count; my ($time, @totals); for (@set) { chomp; my @f = split /\t/; $time ||= shift @f; # only want the FIRST time $totals[$_] += $f[$_] for 0 .. $#f; } print OUT join("\t", $time, map $_/$count, @totals), "\n"; } }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|