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, " ", $h{$k}, "
";
}
However, if the key happens to have a varying length, then the formatting just looks very jagged. I ve investigated format, and it s typically too heavyweight for what I m looking for, which is a simple column-row aligning pretty-printer.