The Perl 6 Implementation of Hangman

 
 
 
Location:
examples/games/hangman.p6
in the pugs distribution. Good example of a number of Perl 6 things:
  1. magical lexicals
  2. ternary operator
  3. err and //
  4. unary =
  5. smart matching
  6. junctions
  7. for and loop
  8. string concatenation
  9. grep and adverbial blocks
  10. constants
  11. interpolating function results into strings
  12. the new repeat operatator