Perl 6 Perl 6 today #30

Cool Perl 6: Formatted display of a hash

If you don't like tabs, the ".fmt" method can do formatted display:

my %scores = < pmichaud 52   mäsak 95   PerlJam 78 >;

say %scores.fmt('%s => %s');

or

%scores.fmt('%s => %s').say;

Result (order may be different):

pmichaud => 52
mäsak => 95
PerlJam => 78
Copyright © 2009
http://www.pmichaud.com/2009/pres/