in reply to Merging 2 Formatted Files
This will give you all the info on each id in one hash line.while(<FIRSTFILE>) { ($key, $rest) = split; $list{$key}= $rest; } while(<SECONDFILE>) { ($key, $rest) = split; $list{$key}.= " " .$rest; } for(sort keys %list) { print "$_\n"; }
|
|---|