in reply to Re^3: underline variable width column headings
in thread underline variable width column headings
What puzzles me is that It’s possible to get the variable width underline that I want when I use:push @line, colored(sprintf('%2d', scalar @{$trigraphs{$k}}), 'underli +ne') . colored(sprintf('%s', $k), 'underline') . colored(sprintf('%-2 +d', scalar keys %{$flanks{$k}}), 'underline');
I just don’t know how to get it with the columns lining up.push @line, sprintf('%2s%s%-2s', colored(scalar @{$trigraphs{$k}}, 'un +derline'), colored($k, 'underline'), colored(scalar keys %{$flanks{$k +}}, 'underline') );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: underline variable width column headings
by quester (Vicar) on Dec 18, 2006 at 09:08 UTC | |
by wlegrand (Initiate) on Dec 19, 2006 at 01:51 UTC |