I was doing something similar a few years back. The solution I adopted was first to generate the table in memory as a simple 2 dimensional array of hashes, Then once the data had been turned into a table, I had another function that compared and merged neighbouring identical cells. Finally the table was rendered in it's final form. I was rendering to HTML, but I don't think it would be any harder to render to plain text, so Text::Table looks suitable.
In reply to Re: Pretty-Print Table (Omitting Duplicates)
by chrestomanci
in thread Pretty-Print Table (Omitting Duplicates)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |