in reply to Extracting selected column names and values from tab delimited text file
You may find Text::CSV_XS is helpful.