techniques for handling large text files

2003-12-28 Thread danl001
Hi, If this question would be better posted to another perl list, please let me know. I have a very large text files (~2 GB) and it's in the following format: header line header line header line marker 1 header line header line header line marker 2 line type 1 line type 1 line type 1 ... line t

techniques for handling large text files

2003-12-28 Thread danl001
Hi, If this question would be better posted to another perl list, please let me know. I have a very large text files (~2 GB) and it's in the following format: header line header line header line marker 1 header line header line header line marker 2 line type 1 line type 1 line type 1 ... line t

strange sort order

2004-01-14 Thread danl001
Hello, I do not have access to the sort operation. All I have is a file that is "sorted" but I don't know exactly the mechanism by which it was sorted. What I am trying to do is write a comparison function--given any two lines in this file, return -1, 0, 1 as perl's cmp function does. I don't

Re: strange sort order

2004-01-14 Thread danl001
Daniel Staal wrote: Quick question: is this data more representative than the data in the first email? In particular, does set 4 from the first email actually exist, exactly as listed, anywhere? If this latter data is more representative I'd bet on ASCIIbetical ordering: Compare each string on