Hi, all.
I need to write a perl script to extract a subset of columns based on the column header. For example, I have a dataset containing 200 columns and a list of 10 column names. I like to extract a dataset that contains the 10 columns of data only from the whole dataset. What in my mind now is to generate array1 from the header of the whole dataset and generate array2 from the 10 column names. Then to find the position of this 10 column names in the array1. Then read the entire dataset to extract the 10 columns. Am I on the right track? Is there a ready to use function for this type of task? Thanks in advance AG