I have a data file that consists of the header information which is 231 Lines and the footer information as 4 lines. The total number of line including the header and footer 1.2 Million with Pipe Delimited file.
For example:
Header Information:
Footer Information:
Data looks like:
Each line has around ~210 columns and is Pipe delimited.
The outfile should contain the lines with only specific Columns and should be TAB delimited.
Specific Columns:
So I have started writing the Perl script:
I am using array spice to eliminate the Header and footer information..Please correct me if I am wrong.
Now, Once I load the file into an array, how do I select the above selected columns and then insert the delimiter as TAB in Perl.
Would that be easier if I use hashes or array ?
Could someone Please help me out in this. Really appreciate your thoughts.
After using the "Split" function and then while saving the columns into an array,
I am struggling how to eliminate the first 231 lines and the last 4 lines, because these are the header information and footer information.