in reply to Re^3: Text::Diff::Table output, but want to show all lines
in thread Text::Diff::Table output, but want to show all lines
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 | +-----+-------+------------+------------+
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Text::Diff::Table output, but want to show all lines
by tctoa (Novice) on Jul 08, 2019 at 14:59 UTC |