Location:
examples/games/hangman.p6
in the pugs
distribution.
Good example of a number of Perl 6 things:
- magical lexicals
- ternary operator
err
and //
- unary =
- smart matching
- junctions
for
and loop
- string concatenation
- grep and adverbial blocks
- constants
- interpolating function results into strings
- the new repeat operatator