Perl Weekly Challenge - 024

Sunday, Sep 1, 2019| Tags: Perl, Raku


With great pleasure, we announce Athanasius as the winner of Perl Weekly Challenge - 023. Congratulations Athanasius, you should soon hear from Perl Careers about your reward. For rest of the participants, I would say Good Luck for next time. Keep sending in your solutions and share your knowledge with each other.


Here is the recap of last week challenge.


Please checkout Perl solutions review of the Perl Weekly Challenge - 022 by Kian-Meng Ang.


Please checkout Raku solutions review of the Perl Weekly Challenge - 022 by Laurent Rosenfeld.

Challenge #022

  1. Sexy Prime Pairs

  2. The Lempel–Ziv–Welch (LZW) Compression Algorithm

Past reviews of Perl6 solutions.

Challenge #015

  1. Vigenère Cipher

  2. Strong and Weak Prime Numbers

Challenge #016

  1. The Largest Share in the Pythagoras Pie

Challenge #017

  1. Parsing URLs With a Perl 6 Grammar


Please take a look at the charts showing interesting data.

I would like to thank everyone for their valuable suggestions. Please do share your experience with us. Good luck for the weekly challenge and enjoy.


  1. Bruno Ramos, an experienced Perl hacker from Luxembourg.

  2. Colin Crain, learned Perl4 around 25 years ago, then put in his 10,000 hours in Perl5.

Check out current team members.


Last week, one of the team members, Roger Bell West, submitted solution in Postscript. He initially started with Perl5 solutions only. Few weeks ago, he started submitting Perl6 solutions as well. Now he went beyond my expectations and did it in Postscript. This is the proudest moment for me, when I see how members going out of their comfort zone and trying new challenges every week. I hope it inspires other as well to try something different and share with the team, so we also learn from their hard work.

Task #1

Create a smallest script in terms of size that on execution doesn’t throw any error. The script doesn’t have to do anything special. You could even come up with smallest one-liner.

Task #2

Create a script to implement full text search functionality using Inverted Index. According to wikipedia:

In computer science, an inverted index (also referred to as a postings file or inverted file) is a database index storing a mapping from content, such as words or numbers, to its locations in a table, or in a document or a set of documents (named in contrast to a forward index, which maps from documents to content). The purpose of an inverted index is to allow fast full-text searches, at a cost of increased processing when a document is added to the database.

Here is a nice example of Inverted Index.

Task #3

Write a script to use API. Please follow the page for more information. The API task is optional but we would love to see your solution.

Last date to submit the solution 23:59 (UK Time) Sunday 8th September 2019.


If you have any suggestions or ideas then please do share with us.

Contact with me