From mark at purdue.edu Sat Nov 30 21:27:09 2019 From: mark at purdue.edu (Mark Senn) Date: Sun, 01 Dec 2019 00:27:09 -0500 Subject: [Purdue-pm] example Raku program Message-ID: <16031.1575178029@pier.ecn.purdue.edu> Purdue Perl Mongers, I like using IBM Plex fonts the best and suggest you give them a try. See https://github.com/IBM/plex/releases Here are some of the characters that look quite different in Plex: {} [] <> () l1 0O If those look too similar in your font you may want to change. Raku was formerly known as Perl 6. The Perl Weekly Challenge 035 involves converting from plain text to Morse Code binary encoded text files and back. I wrote a Raku module that handles the encoding and decoding and short encode.p6 and decode.p6 programs. Comments in the code starting with # are ordinary comments. Comments in the code starting with ## describe the Raku language syntax and semantics. The files are linked to from https://engineering.purdue.edu/~mark/blog/pwc-035 If you look at them on the web they may not show the correct Unicode characters in them. But, you should be able to get an idea of how the programs work. If you download them and look at them in a terminal window using the IBM Plex Mono Regular font you should see the same glyphs (printed representations of characters) that I do. I spent a long time "shopping" for a font with the features Plex has and have been very happy with it. The more I learn about Raku the better I like it. -mark