aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-215/luca-ferrari/raku/ch-1.p613
1 files changed, 13 insertions, 0 deletions
diff --git a/challenge-215/luca-ferrari/raku/ch-1.p6 b/challenge-215/luca-ferrari/raku/ch-1.p6
new file mode 100644
index 0000000000..b07ae596b0
--- /dev/null
+++ b/challenge-215/luca-ferrari/raku/ch-1.p6
@@ -0,0 +1,13 @@
+#!raku
+
+#
+# Perl Weekly Challenge 215
+# Task 1
+#
+# See <https://perlweeklychallenge.org/blog/perl-weekly-challenge-215/>
+#
+
+sub MAIN( *@words where { @words.grep( * ~~ / ^ <[a..zA..Z]>+ $ / ).elems == @words.elems } ) {
+
+ say ( @words.elems - @words.grep( { $_ ~~ $_.comb.sort.join } ).elems );
+}