diff options
| author | LapVeesh <rabbiveesh@gmail.com> | 2019-04-21 10:53:17 +0300 |
|---|---|---|
| committer | LapVeesh <rabbiveesh@gmail.com> | 2019-04-21 10:53:17 +0300 |
| commit | 2fe3ee92c9aeabfe53a38f6a7e7b97151e7f4e24 (patch) | |
| tree | 10606aaa77369b41bf3ebc5d520cb6ed7b62f65f /challenge-004 | |
| parent | dfbc57749888066b163267bda3801bd66ca5b1de (diff) | |
| download | perlweeklychallenge-club-2fe3ee92c9aeabfe53a38f6a7e7b97151e7f4e24.tar.gz perlweeklychallenge-club-2fe3ee92c9aeabfe53a38f6a7e7b97151e7f4e24.tar.bz2 perlweeklychallenge-club-2fe3ee92c9aeabfe53a38f6a7e7b97151e7f4e24.zip | |
Added answer to easy challenge for week 4
Diffstat (limited to 'challenge-004')
| -rwxr-xr-x | challenge-004/veesh-goldman/perl5/ch-01.pl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/challenge-004/veesh-goldman/perl5/ch-01.pl b/challenge-004/veesh-goldman/perl5/ch-01.pl new file mode 100755 index 0000000000..38cac1586e --- /dev/null +++ b/challenge-004/veesh-goldman/perl5/ch-01.pl @@ -0,0 +1,18 @@ +#! /usr/bin/perl + + +#Here's a little hacky way of doing this: I'm encoding the digits +#of pi in unicode characters, and then turning them back into +#digits. I get between 4 and 5 digits per chinese character (or +#math symbol). It's a bit golfy, b/c I'm assuming whitespace +#counts towards the 'length' of the script. I'm counting 'length' +#by characters, not by bytes. +use utf8;print for'3.',map ord,split//,'㝏枧⌓纀閷┞⊉◴Ⓑ銆:' + +#this is just so I can put both in the same script +; +#I assume that printing via die counts too, because print makes +#this too long. +#Arctan of 1 is actually defined as pi/4, and I get 15 digits +#precision on my box (64 bit Ubuntu Xenial) +die 4*atan2 1,1 |
