Robbie Hatley’s Solutions, in Perl, for The Weekly Challenge #392 (“Convert Palindrome” and “Words Length Product”)
For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle with two parts, with a new pair of tasks each Monday. You can find it here: The Weekly Challenge The Weekly Challenge for the week of 2026-09-21 through 2026-09-27 is #392. The tasks for challenge #392 are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 392-1: Convert Palindrome Submitted by: Mohammad Sajid Anwar Write a script to convert a given string to a palindrome by concatenating the minimum number of characters to its left. To solve this problem, I realized that to minimize letters added, I should look for the longest palindromic prefix within the word, then just tack the reversed remainder to the word's left. Robbie Hatley's Perl Solution to The Weekly Challenge 392-1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 392-2: Words Length Product Submitted by: Mohammad Sajid Anwar You are give...