http://www.perlmonks.org?node_id=1018436

mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I use win32ole to xls2tab formatted files for processing. Question I have is how can I merge lines to reformat the xls itself? Each unique record could take up 5 rows or more. Each record will alway begin in column A and can be identified with the word CUSIP. xls file will go something like this:

CUSIP data data data data data data data data data data data CUSIP data data data data data data data data data data data CUSIP data data data data data data data data data data data
What I am trying to do is merge ROWS UP to the ROW that starts with CUSIP.

what I want is:

CUSIP data data data data data data data data data data data
Any Thoughts if this is even possible? Thank you for your time.