aboutsummaryrefslogtreecommitdiff
path: root/challenge-002
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2019-04-02 18:08:17 +0100
committerGitHub <noreply@github.com>2019-04-02 18:08:17 +0100
commit224d32be8051b4dbe5a374d6ef2a7b47741d302f (patch)
tree8d8306271ed47edde1dafa00f9948a29e37251b6 /challenge-002
parent6f2f30573c574549e8851b27d2d97331ffdedf60 (diff)
parent3399a560c617590169660d034c729e620af4e7fb (diff)
downloadperlweeklychallenge-club-224d32be8051b4dbe5a374d6ef2a7b47741d302f.tar.gz
perlweeklychallenge-club-224d32be8051b4dbe5a374d6ef2a7b47741d302f.tar.bz2
perlweeklychallenge-club-224d32be8051b4dbe5a374d6ef2a7b47741d302f.zip
Merge pull request #4 from dmanto/patch-1
Create ch-2.sh
Diffstat (limited to 'challenge-002')
-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