Perl Weekly Challenge: Relatively Lucky

This week I’m having trouble locking in on a musical theme. With the tasks being “Lucky Integer” and “Relative Sort”, nothing really jumps out at me. I finally decided that “Lucky” was the key, and that made me think of Emerson, Lake, and Palmer’s Lucky Man.

Now that we have our musical accompaniment, we can work on Perl Weekly Challenge 284!

Continue reading

Perl Weekly Challenge: Bag! Bag! Bag!

“Bag!” “Bag?”
“Bag! Bag!” “What do you mean, bag, bag?”
“Bag! Bag! Bag!” “What bag?”
“No bag!” “No bag?”
“Your bag! Suddenly! Here! Now—gone!”

When I saw the tasks for this week, my programming brain immediately screamed “Bag!” (it’s becoming my favorite class for PWC problems) and the moment that happened, my theater brain immediately went to Vicky and Roger in Noises Off. My wife, however, pointed out that Noises Off isn’t a musical, so she suggested this week’s musical theme, Papa’s Got a Brand New Bag. James Brown is certainly appropriate accompaniment to Perl Weekly Challenge 283

Continue reading

Perl Weekly Challenge: Appear Twice, Count Once

There’s no relation to the problems for this week’s musical theme. Earlier this week, my wife and I watched the documentary Gordon Lightfoot: If You Could Read My Mind, so you’re getting my favorite Gordon Lightfoot song… Canadian Railroad Trilogy.

So now, while we’re listening to the construction of the Canadian Pacific Railway, let’s construct some code as part of Perl Weekly Challenge 280!

Continue reading

Perl Weekly Challenge: Word Reverse String Sort

I’m posting really late this week because this was a special week for my wife and I: 19 years ago this past Wednesday, I managed to get her alone during intermission of the production of Guys and Dolls we were in, and I asked her out on a date. I guess the date went well, because 19 years later we’re still together.

To celebrate, we went into Manhattan and went to see two musicals in one day: a matinee of Wicked, one of the musicals my wife was in love with when we met, and an evening performance of a new musical my wife wanted to see: Back to the Future. For today’s musical accompaniment, I’m presenting “For The Dreamers“, one of the new songs from the show.

But now that’s over, and my wife is off at rehearsal for the show she’s doing right now, so let’s sort some strings and reverse some words for Perl Weekly Challenge 278!

Continue reading