Ratna_Ranjan has asked for the wisdom of the Perl Monks concerning the following question:
I have an array which has a list of columnnames such as @colname={colname1,colname3}; Now I want the colnames and values from the file which matches the names in the array. So that my final output is of the formatcolname1 colname2 colname3 val1 val2 val3 val11 val21 val31 val12 val22 val32
Any suggestion on how to go about achieving this?colname1 colname3 val1 val3 val11 val31 val12 val32
|
|---|