Robbie Hatley's Solutions, in Perl, for The Weekly Challenge #315 (Theme: “If I Had Words”)
For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle with two parts, cycling every Sunday. You can find it here: The Weekly Challenge The Weekly Challenge for the week of 2025-03-31 through 2025-04-06 is #315. “If I had words To make a day for you I sing you a morning golden and new “I would make this day Last for all time Give you a night Deep in moonshine” ~~Johnathan Hodge The tasks for challenge #315 are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 315-1: Find Words Submitted by: Mohammad Sajid Anwar You are given a list of words and a character. Write a script to return the index of word in the list where you find the given character. Example #1: Input: @list = ("the", "weekly", "challenge") $char = "e" Output: (0, 1, 2) Example #2: Input: @list = ("perl", "raku", "python") $char = "p" ...