in reply to Re: Extracting formatted text block
in thread Extracting formatted text block

Two problems:

1) Your solution doesn't take account lines that only have one column:
x outside of string at !.pl line 28, <DATA> line 14.

2) Your output not ordered correctly (if I fudge the data to get around the first problem):
NAME ONE, AME EIGHT ..., NAME TWO THREE, AME NINE - TEN, NAME FOUR ..., AME ELEVEN, NAME FIVE - SIX, AME TWELVE, NAME SEVEN, XXX XXXXXX