Cool Perl 6: Displaying hash contents
Perl 6:
say ~%scores;
- ~ is the "string context" prefix
- evaluates its argument in string context
- hashes in string context now produce key, tab, value, newline
Perl 6 | Perl 6 today | #28 |
Perl 6:
say ~%scores;
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |