Perl Weekly Challenge 35: Binary Encoded Morse Code
These are some answers to the Week 35 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a few days (November 24, 2019). This blog post offers some solutions to this challenge, please don't read on if you intend to complete the challenge on your own.
This week, both tasks were contributed by Paul Johnson.
I usually first do task 1 in Perl 5 and in Raku (formerly known as Perl 6), or sometimes the other way around, and then task 2 in both languages. This week, however, the two tasks are so closely related that it makes sense to do both tasks together in one language, and then the two tasks in the other language.
The tasks
Task # 1: Encode Text into Binary Encoded Morse Code
Write a program to encode text into binary encoded morse code.
Pay attention to any changes which might need to be made to the text to make it valid morse code.


