The Weekly Challenge - 185

Monday, Oct 3, 2022| Tags: Perl, Raku

TABLE OF CONTENTS


01. HEADLINES

02. SPONSOR

03. RECAP

04. PERL REVIEW

05. RAKU REVIEW

06. CHART

07. NEW MEMBERS

08. GUESTS

09. TASK #1: MAC Address

10. TASK #2: Mask Code


HEADLINES


Welcome to the Week #185 of The Weekly Challenge.

Today, we are giving away Token #8 to Kjetil Skotheim for the book, Learning Perl Exercises by brian d foy. I will share the details with you in a separate email.


Past Winners

1) Cheok-Yin Fung
2) W. Luis Mochan
3) Robert DiCicco
4) Kueppo Wesley
5) Solathian
6) Dario Mazzeo
7) Peter Campbell Smith

Finally, time to announce the next champion. I would like to declare, Kueppo Wesley as the next champion of The Weekly Challenge. He joined the Team PWC in the Week #156. He has contributed in Perl only so far i.e. Week #156, Week #157, Week #161, Week #162, Week #180, Week #181, Week #182, Week #183 and Week #184.

Welcome back Dave Cross and thanks for your contributions in Perl.

Welcome back James Raspass with your contributions in Perl.

Thank you, Steven Wilson, for Python guest contributions as Jupyter Notebook.

Thank you, AhmetEmre, for the bulk guest contributions in BQN.

My contributions to the Week 184 is in Perl only.


TOP 10 Guest Languages


This week we have a new entry BQN, thanks to the contributions mostly by AhmetEmre.

Do you see your favourite language in the Top 10? If not then why not contribute regularly and make it to the top.

 1. Python  (1107)
 2. Haskell (497)
 3. Ruby    (395)
 4. Lua     (385)
 5. C       (271)
 6. C++     (270)
 7. Rust    (232)
 8. Go      (224)
 9. BQN     (217)
10. Node.js (191)

Blogs with Creative Title


1. Sequenced Split by Arne Sommer.

2. Serial Boxing by Colin Crain.

3. mangling strings by Luca Ferrari.

4. Split Sequeunce by Roger Bell_West.


GitHub Repository Stats


1. Commits: 28,106 (+146)

2. Pull Requests: 6,823 (+37)

3. Contributors: 205

4. Fork: 261 (+1)

5. Stars: 143



Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2022. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2022. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


RECAP


Quick recap of The Weekly Challenge - 184 by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of The Weekly Challenge - 178 by Colin Crain.

If you missed any past reviews then please check out the collection.


RAKU REVIEW


If you missed any past reviews then please check out the collection.


CHART


Please take a look at the charts showing interesting data.

I would like to THANK every member of the team for their valuable suggestions. Please do share your experience with us.


NEW MEMBERS


Please find out How to contribute?, if you have any doubts.

Please try the excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.


GUESTS


Please check out the guest contributions for the Week #184.

Please find past solutions by respected guests. Please share your creative solutions in other languages.


Task 1: MAC Address

Submitted by: Mohammad S Anwar

You are given MAC address in the form i.e. hhhh.hhhh.hhhh.

Write a script to convert the address in the form hh:hh:hh:hh:hh:hh.

Example 1

Input:  1ac2.34f0.b1c2
Output: 1a:c2:34:f0:b1:c2

Example 2

Input:  abc1.20f1.345a
Output: ab:c1:20:f1:34:5a

Task 2: Mask Code

Submitted by: Mohammad S Anwar

You are given a list of codes in many random format.

Write a script to mask first four characters (a-z,0-9) and keep the rest as it is.

Example 1

Input: @list = ('ab-cde-123', '123.abc.420', '3abc-0010.xy')
Output: ('xx-xxe-123', 'xxx.xbc.420', 'xxxx-0010.xy')

Example 2

Input: @list = ('1234567.a', 'a-1234-bc', 'a.b.c.d.e.f')
Output: ('xxxx567.a', 'x-xxx4-bc', 'x.x.x.x.e.f')


Last date to submit the solution 23:59 (UK Time) Sunday 9th October 2022.


SO WHAT DO YOU THINK ?

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

Contact with me