Displaying the contents of a hash
Perl 6:
.say for %h
Start with
for %h.pairs { say $_ } for %h.pairs { $_.say } # say $_ is $_.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 $_.say for %h.pairs { .say } # $_.say is .saycontinued...
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |