Re: processing large datafiles

2009-02-17 Thread Chas. Owens
On Tue, Feb 17, 2009 at 12:39, Jim Gibson wrote: snip >> open(MAP,"file.map") || die; > > It is better to use lexical variables for file handles, say why the open > fails if it does not succeed, and use the low-precedence 'or' instead of > '||': > > open( my $map, "file.map") or die("Can't open fi

Re: processing large datafiles

2009-02-17 Thread Jim Gibson
On 2/17/09 Tue Feb 17, 2009 9:06 AM, "Pedro Soto" scribbled: > Dear all, > I need to read a huge file and then write only the columns that match > with ids from another file (with less ids) in a sorted fashion. > I made a script thatdoes the work but it takes a lot of time. I tried > the script

processing large datafiles

2009-02-17 Thread Pedro Soto
Dear all, I need to read a huge file and then write only the columns that match with ids from another file (with less ids) in a sorted fashion. I made a script thatdoes the work but it takes a lot of time. I tried the script with few columns from the huge and it took 5 sec to do the job. Because I