Displaying the contents of a hash
Perl 6:
.say for %h
Start with
for %h.pairs { say $_ } for %h.pairs { $_.say } # say $_ is $_.saycontinued...
Perl 6 | Perl 6 today | #22 |
Perl 6:
.say for %h
Start with
for %h.pairs { say $_ } for %h.pairs { $_.say } # say $_ is $_.saycontinued...
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |