July 2019 Archives

Perl Weekly Challenge #016

Task #1: Pythagoras Pie Puzzle

This puzzle’s connection with Pythagoras is tenuous indeed: it originally appeared in the Dutch magazine Pythagoras (see here and here)! But the puzzle is interesting. Of course, the real challenge is to work out the answer mathematically, but for those of us who are mathematically declined a Perl script is the way to go.

The first draft of my …

About Athanasius

user-pic PerlMonk; experienced Perl5 hacker; learning Perl6.