Often in Perl I want to print out column/row data, say, from a hash.
This is simple:
foreach my $k(keys %h)
{
print $k, "\t", $h{$k}, "\n";
}
However, if the key happens to have a varying length, then the formatting just looks very jagged. I've investigated format, and its typically too heavyweight for what I'm looking for, which is a 'simple' column-row aligning pretty-printer.