in reply to Create table from a list of values?

Heh, Text::Table works by the row, exclusively. But the guy wants "ls" style output, where the next item appears just beneath or at the top of the next column.

Reading the docs, I can't see whereText::Table does the work of:

  1. figuring out how wide the terminal is
  2. calculating how many columns can fit
  3. breaking the data up into columns as needed

By the time you've done all that, printing each row n by selecting the nth item from each column in sequence, padding items out as needed, and printing a newline is cake.

  • Comment on Re: Create table from a list of values?