Perl Weekly Challenge: A Man, A Plan, A Canal… PANAMA!

So, when someone mentions palindromes, my mind immediately jumps to my favorite book on mathematics, algorithms, music, art, and philosophy: Gödel, Escher, Bach by Douglas Hofstadter. This was the book that introduced me to the idea of a musical palindrome, a piece of music that sounds the same played forwards and backwards, and the author cites J.S. Bach’s Crab Canon as an example.

So let’s approach Perl Weekly Challenge 288 from both sides… (no, no, I will not change the theme to Joni’s Clouds).

Continue reading

Perl Weekly Challenge: Exact Change Only!

Nothing jumped out at me for the theme this week, so I started free-associating. The first task, “No Connection”, makes me think of bus routes, and that’s reinforced by the second task, “Making Change”. But I’ve already used The Hollies Bus Stop, so I started thinking about busses, and how they keep getting stuck in traffic, and I landed on Jimi Hendrix’s Crosstown Traffic.

So, with the musical background set, let’s not slow down and get to the other side of Perl Weekly Challenge 285.

Continue reading