aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2021-12-13 10:09:06 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2021-12-13 10:09:06 +0000
commit3c169f198d622e6f460dc7796985592ede954ac6 (patch)
tree65bd33aa595ed1117880af4ba6399a09863978d0
parentcf31359c03e6738dde7d93d7758ad7f1817d17da (diff)
downloadperlweeklychallenge-club-3c169f198d622e6f460dc7796985592ede954ac6.tar.gz
perlweeklychallenge-club-3c169f198d622e6f460dc7796985592ede954ac6.tar.bz2
perlweeklychallenge-club-3c169f198d622e6f460dc7796985592ede954ac6.zip
- Added Perl solution to the task "Calculator" of week 143.
-rw-r--r--challenge-143/mohammad-anwar/perl/ch-1.pl25
-rw-r--r--stats/pwc-challenge-142.json540
-rw-r--r--stats/pwc-current.json529
-rw-r--r--stats/pwc-language-breakdown-summary.json64
-rw-r--r--stats/pwc-language-breakdown.json951
-rw-r--r--stats/pwc-leaders.json718
-rw-r--r--stats/pwc-summary-1-30.json52
-rw-r--r--stats/pwc-summary-121-150.json38
-rw-r--r--stats/pwc-summary-151-180.json34
-rw-r--r--stats/pwc-summary-181-210.json46
-rw-r--r--stats/pwc-summary-211-240.json58
-rw-r--r--stats/pwc-summary-241-270.json52
-rw-r--r--stats/pwc-summary-31-60.json30
-rw-r--r--stats/pwc-summary-61-90.json40
-rw-r--r--stats/pwc-summary-91-120.json30
-rw-r--r--stats/pwc-summary.json540
16 files changed, 1929 insertions, 1818 deletions
diff --git a/challenge-143/mohammad-anwar/perl/ch-1.pl b/challenge-143/mohammad-anwar/perl/ch-1.pl
new file mode 100644
index 0000000000..74a9fa647c
--- /dev/null
+++ b/challenge-143/mohammad-anwar/perl/ch-1.pl
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+
+=head1
+
+Week 143:
+
+ https://theweeklychallenge.org/blog/perl-weekly-challenge-143
+
+Task #1: Calculator
+
+ You are given a string, `$s`, containing mathematical expression.
+
+ Write a script to print the result of the mathematical expression. To keep it simple, please only accept `+ - * ()`.
+
+=cut
+
+use strict;
+use warnings;
+use Test::More;
+
+is(eval qq|10 + 20 - 5|, 25, 'Example 1');
+is(eval qq|(10 + 20 - 5) * 2|, 50, 'Example 2');
+
+done_testing;
+
diff --git a/stats/pwc-challenge-142.json b/stats/pwc-challenge-142.json
new file mode 100644
index 0000000000..22790ebdfe
--- /dev/null
+++ b/stats/pwc-challenge-142.json
@@ -0,0 +1,540 @@
+{
+ "xAxis" : {
+ "type" : "category"
+ },
+ "title" : {
+ "text" : "The Weekly Challenge - 142"
+ },
+ "chart" : {
+ "type" : "column"
+ },
+ "legend" : {
+ "enabled" : 0
+ },
+ "yAxis" : {
+ "title" : {
+ "text" : "Total Solutions"
+ }
+ },
+ "drilldown" : {
+ "series" : [
+ {
+ "id" : "Abigail",
+ "name" : "Abigail",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Adam Russell",
+ "name" : "Adam Russell",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Alexander Pankoff",
+ "id" : "Alexander Pankoff",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Andrew Shitov",
+ "name" : "Andrew Shitov",
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Arne Sommer",
+ "id" : "Arne Sommer",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Athanasius",
+ "id" : "Athanasius",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Colin Crain",
+ "name" : "Colin Crain",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Dave Jacoby",
+ "name" : "Dave Jacoby",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "David Santiago",
+ "id" : "David Santiago",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Duncan C. White",
+ "name" : "Duncan C. White",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "E. Choroba",
+ "name" : "E. Choroba",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "name" : "Flavio Poletti",
+ "id" : "Flavio Poletti",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 1
+ ]
+ ],
+ "id" : "Jake",
+ "name" : "Jake"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Jaldhar H. Vyas",
+ "id" : "Jaldhar H. Vyas"
+ },
+ {
+ "name" : "James Smith",
+ "id" : "James Smith",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Jan Krnavek",
+ "id" : "Jan Krnavek",
+ "data" : [
+ [
+ "Raku",
+ 1
+ ]
+ ]
+ },
+ {
+ "name" : "Jorg Sommrey",
+ "id" : "Jorg Sommrey",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "name" : "Laurent Rosenfeld",
+ "id" : "Laurent Rosenfeld"
+ },
+ {
+ "data" : [
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 4
+ ]
+ ],
+ "name" : "Luca Ferrari",
+ "id" : "Luca Ferrari"
+ },
+ {
+ "name" : "Mark Anderson",
+ "id" : "Mark Anderson",
+ "data" : [
+ [
+ "Raku",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Matthew Neleigh",
+ "id" : "Matthew Neleigh"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Paulo Custodio",
+ "id" : "Paulo Custodio"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ],
+ "name" : "Pete Houston",
+ "id" : "Pete Houston"
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith"
+ },
+ {
+ "name" : "Robert DiCicco",
+ "id" : "Robert DiCicco",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ]
+ ]
+ },
+ {
+ "id" : "Roger Bell_West",
+ "name" : "Roger Bell_West",
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Raku",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ]
+ },
+ {
+ "id" : "Ulrich Rieke",
+ "name" : "Ulrich Rieke",
+ "data" : [
+ [
+ "Perl",
+ 1
+ ],
+ [
+ "Raku",
+ 2
+ ]
+ ]
+ },
+ {
+ "data" : [
+ [
+ "Perl",
+ 2
+ ],
+ [
+ "Blog",
+ 1
+ ]
+ ],
+ "id" : "W. Luis Mochan",
+ "name" : "W. Luis Mochan"
+ }
+ ]
+ },
+ "tooltip" : {
+ "headerFormat" : "<span style='font-size:11px'>{series.name}</span><br/>",
+ "followPointer" : 1,
+ "pointFormat" : "<span style='color:{point.color}'>{point.name}</span>: <b>{point.y:f}</b><br/>"
+ },
+ "series" : [
+ {
+ "data" : [
+ {
+ "name" : "Abigail",
+ "drilldown" : "Abigail",
+ "y" : 4
+ },
+ {
+ "name" : "Adam Russell",
+ "y" : 3,
+ "drilldown" : "Adam Russell"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Alexander Pankoff",
+ "name" : "Alexander Pankoff"
+ },
+ {
+ "y" : 1,
+ "drilldown" : "Andrew Shitov",
+ "name" : "Andrew Shitov"
+ },
+ {
+ "name" : "Arne Sommer",
+ "y" : 3,
+ "drilldown" : "Arne Sommer"
+ },
+ {
+ "y" : 4,
+ "drilldown" : "Athanasius",
+ "name" : "Athanasius"
+ },
+ {
+ "drilldown" : "Colin Crain",
+ "y" : 2,
+ "name" : "Colin Crain"
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Dave Jacoby",
+ "name" : "Dave Jacoby"
+ },
+ {
+ "drilldown" : "David Santiago",
+ "y" : 2,
+ "name" : "David Santiago"
+ },
+ {
+ "y" : 1,
+ "drilldown" : "Duncan C. White",
+ "name" : "Duncan C. White"
+ },
+ {
+ "name" : "E. Choroba",
+ "drilldown" : "E. Choroba",
+ "y" : 2
+ },
+ {
+ "name" : "Flavio Poletti",
+ "drilldown" : "Flavio Poletti",
+ "y" : 6
+ },
+ {
+ "name" : "Jake",
+ "drilldown" : "Jake",
+ "y" : 1
+ },
+ {
+ "name" : "Jaldhar H. Vyas",
+ "y" : 5,
+ "drilldown" : "Jaldhar H. Vyas"
+ },
+ {
+ "drilldown" : "James Smith",
+ "y" : 3,
+ "name" : "James Smith"
+ },
+ {
+ "drilldown" : "Jan Krnavek",
+ "y" : 1,
+ "name" : "Jan Krnavek"
+ },
+ {
+ "name" : "Jorg Sommrey",
+ "y" : 2,
+ "drilldown" : "Jorg Sommrey"
+ },
+ {
+ "y" : 5,
+ "drilldown" : "Laurent Rosenfeld",
+ "name" : "Laurent Rosenfeld"
+ },
+ {
+ "name" : "Luca Ferrari",
+ "y" : 6,
+ "drilldown" : "Luca Ferrari"
+ },
+ {
+ "y" : 2,
+ "drilldown" : "Mark Anderson",
+ "name" : "Mark Anderson"
+ },
+ {
+ "name" : "Matthew Neleigh",
+ "y" : 2,
+ "drilldown" : "Matthew Neleigh"
+ },
+ {
+ "drilldown" : "Paulo Custodio",
+ "y" : 2,
+ "name" : "Paulo Custodio"
+ },
+ {
+ "drilldown" : "Pete Houston",
+ "y" : 2,
+ "name" : "Pete Houston"
+ },
+ {
+ "y" : 3,
+ "drilldown" : "Peter Campbell Smith",
+ "name" : "Peter Campbell Smith"
+ },
+ {
+ "drilldown" : "Robert DiCicco",
+ "y" : 2,
+ "name" : "Robert DiCicco"
+ },
+ {
+ "name" : "Roger Bell_West",
+ "y" : 5,
+ "drilldown" : "Roger Bell_West"
+ },
+ {
+ "name" : "Ulrich Rieke",
+ "y" : 3,
+ "drilldown" : "Ulrich Rieke"
+ },
+ {
+ "drilldown" : "W. Luis Mochan",
+ "y" : 3,
+ "name" : "W. Luis Mochan"
+ }
+ ],
+ "name" : "The Weekly Challenge - 142",
+ "colorByPoint" : 1
+ }
+ ],
+ "plotOptions" : {
+ "series" : {
+ "dataLabels" : {
+ "enabled" : 1,
+ "format" : "{point.y}"
+ },
+ "borderWidth" : 0
+ }
+ },
+ "subtitle" : {
+ "text" : "[Champions: 28] Last updated at 2021-12-13 10:05:52 GMT"
+ }
+}
diff --git a/stats/pwc-current.json b/stats/pwc-current.json
index e8b1569c16..28e38ce29d 100644
--- a/stats/pwc-current.json
+++ b/stats/pwc-current.json
@@ -1,9 +1,4 @@
{
- "yAxis" : {
- "title" : {
- "text" : "Total Solutions"
- }
- },
"plotOptions" : {
"series" : {
"borderWidth" : 0,
@@ -13,528 +8,56 @@
}
}
},
- "xAxis" : {
- "type" : "category"
- },
- "subtitle" : {
- "text" : "[Champions: 28] Last updated at 2021-12-13 02:43:52 GMT"
+ "title" : {
+ "text" : "The Weekly Challenge - 143"
},
"series" : [
{
- "name" : "The Weekly Challenge - 142",
- "colorByPoint" : 1,
"data" : [
{
- "y" : 4,
- "name" : "Abigail",
- "drilldown" : "Abigail"
- },
- {
- "name" : "Adam Russell",
- "drilldown" : "Adam Russell",
- "y" : 3
- },
- {
- "drilldown" : "Alexander Pankoff",
- "name" : "Alexander Pankoff",
- "y" : 2
- },
- {
- "y" : 1,
- "drilldown" : "Andrew Shitov",
- "name" : "Andrew Shitov"
- },
- {
- "drilldown" : "Arne Sommer",
- "name" : "Arne Sommer",
- "y" : 3
- },
- {
- "y" : 4,
- "name" : "Athanasius",
- "drilldown" : "Athanasius"
- },
- {
- "drilldown" : "Colin Crain",
- "name" : "Colin Crain",
- "y" : 2
- },
- {
- "y" : 3,
- "name" : "Dave Jacoby",
- "drilldown" : "Dave Jacoby"
- },
- {
- "y" : 2,
- "drilldown" : "David Santiago",
- "name" : "David Santiago"
- },
- {
- "y" : 1,
- "name" : "Duncan C. White",
- "drilldown" : "Duncan C. White"
- },
- {
- "name" : "E. Choroba",
- "drilldown" : "E. Choroba",
- "y" : 2
- },
- {
- "drilldown" : "Flavio Poletti",
- "name" : "Flavio Poletti",
- "y" : 6
- },
- {
- "drilldown" : "Jake",
- "name" : "Jake",
+ "name" : "Mohammad S Anwar",
+ "drilldown" : "Mohammad S Anwar",
"y" : 1
- },
- {
- "name" : "Jaldhar H. Vyas",
- "drilldown" : "Jaldhar H. Vyas",
- "y" : 5
- },
- {
- "drilldown" : "James Smith",
- "name" : "James Smith",
- "y" : 3
- },
- {
- "drilldown" : "Jan Krnavek",
- "name" : "Jan Krnavek",
- "y" : 1
- },
- {
- "y" : 2,
- "name" : "Jorg Sommrey",
- "drilldown" : "Jorg Sommrey"
- },
- {
- "drilldown" : "Laurent Rosenfeld",
- "name" : "Laurent Rosenfeld",
- "y" : 5
- },
- {
- "drilldown" : "Luca Ferrari",
- "name" : "Luca Ferrari",
- "y" : 6
- },
- {
- "y" : 2,
- "name" : "Mark Anderson",
- "drilldown" : "Mark Anderson"
- },
- {
- "name" : "Matthew Neleigh",
- "drilldown" : "Matthew Neleigh",
- "y" : 2
- },
- {
- "y" : 2,
- "name" : "Paulo Custodio",
- "drilldown" : "Paulo Custodio"
- },
- {
- "drilldown" : "Pete Houston",
- "name" : "Pete Houston",
- "y" : 2
- },
- {
- "y" : 3,
- "drilldown" : "Peter Campbell Smith",
- "name" : "Peter Campbell Smith"
- },
- {
- "drilldown" : "Robert DiCicco",
- "name" : "Robert DiCicco",
- "y" : 2
- },
- {
- "y" : 5,
- "drilldown" : "Roger Bell_West",
- "name" : "Roger Bell_West"
- },
- {
- "y" : 3,
- "drilldown" : "Ulrich Rieke",
- "name" : "Ulrich Rieke"
- },
- {
- "name" : "W. Luis Mochan",
- "drilldown" : "W. Luis Mochan",
- "y" : 3
}
- ]
+ ],
+ "name" : "The Weekly Challenge - 143",
+ "colorByPoint" : 1
}
],
- "chart" : {
- "type" : "column"
- },
- "title" : {
- "text" : "The Weekly Challenge - 142"
+ "legend" : {
+ "enabled" : 0
},
"drilldown" : {
"series" : [
{
- "id" : "Abigail",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 2
- ]
- ],
- "name" : "Abigail"
- },
- {
- "id" : "Adam Russell",
- "name" : "Adam Russell",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "name" : "Alexander Pankoff",
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Alexander Pankoff"
- },
- {
- "data" : [
- [
- "Raku",
- 1
- ]
- ],
- "name" : "Andrew Shitov",
- "id" : "Andrew Shitov"
- },
- {
- "id" : "Arne Sommer",
- "data" : [
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Arne Sommer"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ]
- ],
- "name" : "Athanasius",
- "id" : "Athanasius"
- },
- {
- "name" : "Colin Crain",
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Colin Crain"
- },
- {
- "id" : "Dave Jacoby",
- "name" : "Dave Jacoby",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ]
- },
- {
- "id" : "David Santiago",
- "data" : [
- [
- "Raku",
- 2
- ]
- ],
- "name" : "David Santiago"
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ]
- ],
- "name" : "Duncan C. White",
- "id" : "Duncan C. White"
- },
- {
- "id" : "E. Choroba",
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "name" : "E. Choroba"
- },
- {
- "id" : "Flavio Poletti",
- "name" : "Flavio Poletti",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 2
- ]
- ]
- },
- {
- "data" : [
- [
- "Perl",
- 1
- ]
- ],
- "name" : "Jake",
- "id" : "Jake"
- },
- {
- "id" : "Jaldhar H. Vyas",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Jaldhar H. Vyas"
- },
- {
- "name" : "James Smith",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "James Smith"
- },
- {
- "name" : "Jan Krnavek",
- "data" : [
- [
- "Raku",
- 1
- ]
- ],
- "id" : "Jan Krnavek"
- },
- {
- "name" : "Jorg Sommrey",
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "id" : "Jorg Sommrey"
- },
- {
- "name" : "Laurent Rosenfeld",
+ "id" : "Mohammad S Anwar",
+ "name" : "Mohammad S Anwar",
"data" : [
[
"Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
1
]
- ],
- "id" : "Laurent Rosenfeld"
- },
- {
- "name" : "Luca Ferrari",
- "data" : [
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 4
- ]
- ],
- "id" : "Luca Ferrari"
- },
- {
- "id" : "Mark Anderson",
- "name" : "Mark Anderson",
- "data" : [
- [
- "Raku",
- 2
- ]
]
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "name" : "Matthew Neleigh",
- "id" : "Matthew Neleigh"
- },
- {
- "id" : "Paulo Custodio",
- "name" : "Paulo Custodio",
- "data" : [
- [
- "Perl",
- 2
- ]
- ]
- },
- {
- "id" : "Pete Houston",
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "name" : "Pete Houston"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Peter Campbell Smith",
- "id" : "Peter Campbell Smith"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ]
- ],
- "name" : "Robert DiCicco",
- "id" : "Robert DiCicco"
- },
- {
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Raku",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "name" : "Roger Bell_West",
- "id" : "Roger Bell_West"
- },
- {
- "id" : "Ulrich Rieke",
- "data" : [
- [
- "Perl",
- 1
- ],
- [
- "Raku",
- 2
- ]
- ],
- "name" : "Ulrich Rieke"
- },
- {
- "name" : "W. Luis Mochan",
- "data" : [
- [
- "Perl",
- 2
- ],
- [
- "Blog",
- 1
- ]
- ],
- "id" : "W. Luis Mochan"
}
]
},
+ "chart" : {
+ "type" : "column"
+ },
"tooltip" : {
-