Re: How to speed up processing two big files

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 12:20, John W. Krahn wrote: > > open SINK, '>>newFile.dat' or die "can't open the newFile.dat: $!"; > for my $id ( sort { $control_ids{ $a }{ order } <=> $control_ids{ $a }{ order } } > keys %control_ids ) { Oops, that _should_ be: for my $id ( sort { $control_ids{ $a }{ o

Re: How to speed up processing two big files

2004-07-12 Thread John W . Krahn
On Monday 12 July 2004 10:59, Tang, Hannah (NIH/NLM) wrote: > > Hi, Hello, >I have two big text files, I need to read one line from first > file, write some information from this line to a new file, and search > second file to find lines with same control_id, and write more > information to t

How to speed up processing two big files

2004-07-12 Thread Tang, Hannah (NIH/NLM)
Hi, I have two big text files, I need to read one line from first file, write some information from this line to a new file, and search second file to find lines with same control_id, and write more information to the new file, I wrote in perl, but it tooks half day to finish joining the two fil