Thanks for the additional information, but you didn't say what the expected output for that input is, and I still don't understand what you want to use Text::Diff::Table for - what are you diffing? Are you just trying to show things in a table? There are plenty of such modules available on CPAN, here's Text::Table::Tiny:

use warnings; use strict; use Text::Table::Tiny 'generate_table'; my @codecs = ('g711', 'g722', 'g729'); my @channelCap = (1000, 2000, 3000); my @percentage = (0.5, 0.3, 0.2); my @table = ( ["No.", "Codec", "ChannelCap", "Percentage"] ); for my $i ( 0 .. $#codecs ) { push @table, [ $i+1, $codecs[$i], $channelCap[$i], $percentage[$i] ]; } print generate_table(rows => \@table, header_row => 1), "\n"; __END__ +-----+-------+------------+------------+ | No. | Codec | ChannelCap | Percentage | +-----+-------+------------+------------+ | 1 | g711 | 1000 | 0.5 | | 2 | g722 | 2000 | 0.3 | | 3 | g729 | 3000 | 0.2 | +-----+-------+------------+------------+

In reply to Re^4: Text::Diff::Table output, but want to show all lines by haukex
in thread Text::Diff::Table output, but want to show all lines by tctoa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.