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


in reply to Re^2: Print the output results of matching line horizontally
in thread Print the output results of matching line horizontally

You may be right, and that's more or less what I think to understand, but it is far from clear because the original post lacks proper formatting.

To the Original poster: please add <code> and </code> tags to both your input data sample and your desired result, so that we can really figure out what you need.