Now that you have solved the header problem, you still have to write your 'flat file database' program. I recommend that you at least look at that section in the book "Higher Order Perl" (ISBN 1558607013). I believe that a free download is still available.
Bill
Comment on Re: finding colunm header which crossing multiple rows