RE: merging two tabseparated text files.

2002-10-29 Thread FARRINGTON, RYAN
Title: RE: Terrible at my logic your data does not match with the info... =( -Original Message-From: Mohanty, Debi (MED, TCS) [mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 29, 2002 12:46 PMTo: [EMAIL PROTECTED]Subject: merging two tabseparated text files. Hi,

RE: merging two tabseparated text files.

2002-10-29 Thread Peter Eisengrein
Title: RE: Terrible at my logic easy with hashes. #untested my %hash1; my %hash2; open(FILE1, $file1) || die "Can't open $file1 : $!\n"; foreach my $line (FILE1) { chomp($line); my @line = split(/ +/,$line); my $key = $line[0]; $hash1{$key} = join(" ",@line); } close(FILE1);

RE: merging two tabseparated text files.

2002-10-29 Thread Mohanty, Debi \(MED, TCS\)
, Hari [mailto:[EMAIL PROTECTED]]Sent: Tuesday, October 29, 2002 1:30 PMTo: Mohanty, Debi (MED, TCS)Subject: RE: merging two tabseparated text files. I don't get it. File 1 is clear. Could get file 2 too. But Not sure why the file 3 looks different if its manual merge or samplle