diff options
| author | Daniel Mantovani <dmanto@gmail.com> | 2019-04-01 16:06:03 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-01 16:06:03 -0300 |
| commit | 3399a560c617590169660d034c729e620af4e7fb (patch) | |
| tree | 7a2ca8ae559b47fccfdc67cc041896001341bdca /challenge-002 | |
| parent | 40da7c41f248198946be9a0ffb55602bcc29e64b (diff) | |
| download | perlweeklychallenge-club-3399a560c617590169660d034c729e620af4e7fb.tar.gz perlweeklychallenge-club-3399a560c617590169660d034c729e620af4e7fb.tar.bz2 perlweeklychallenge-club-3399a560c617590169660d034c729e620af4e7fb.zip | |
Create ch-2.sh
Diffstat (limited to 'challenge-002')
| -rw-r--r-- | challenge-002/daniel-mantovani/perl5/ch-2.sh | 3 |
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 |
