in reply to Is this possible

Untested, but this should work:
my @files = @ARGV; my %table; while (<>) { my ($name, $value) = split(' ', $_); $table{$name}->{$ARGV} = $value; } print join("\t", "NAME", @files), "\n"; for my $n (keys %table) { print $n; for my $f (@files) { print "\t", $table{$name}->{$f}; } print "\n"; }
Then invoke it with:
perl script-name RESULTS_FILE*

Replies are listed 'Best First'.
Re^2: Is this possible
by Anonymous Monk on Mar 24, 2008 at 06:22 UTC
    It seems to work but it gets a bit messy with the filenames (it prints one over the other, not correctly separated with tabs)...
    The numbers seem to print ok though...
      Are you sure you have this line entered correctly?
      print join("\t", "NAME", @files), "\n";
      That's the code responsible for printing the header line, so that's where I'd look. This will print tab characters in between each file name. What you are seeing might be an artifact of your text editor or the way your are viewing the file.