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

sub cls - ternary operator, magical lexicals

sub cls returns Void {
    system(($?OS eq any<MSWin32 mingw cygwin>) ?? 'cls' :: 'clear');
}

    

sub get_committer_list - err, smart-matching, unary =

incfile 'p6.sub_get_committer_list';