aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-002/daniel-mantovani/perl5/ch-2.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/challenge-002/daniel-mantovani/perl5/ch-2.sh b/challenge-002/daniel-mantovani/perl5/ch-2.sh
new file mode 100644
index 0000000000..0507c39f1c
--- /dev/null
+++ b/challenge-002/daniel-mantovani/perl5/ch-2.sh
@@ -0,0 +1,3 @@
+perl -E '$r=$r*35 + ($_ gt '9' ? -55 + ord : $_) for split "", shift;say $r' 'PERL5'
+
+perl -E '$_=shift;while ($_) {unshift @m, $_ % 35;$_=int($_/35)};say map {$_>9?chr 55+$_:$_} @m' 38149690