Robbie Hatley's Solutions, in Perl, for The Weekly Challenge #353 (“Max Words” and “Validate Coupon”)
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 2025-12-22 through 2025-12-28 is #353. The tasks for challenge #353 are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 353-1: Max Words Submitted by: Mohammad Sajid Anwar You are given an array of sentences. Write a script to return the maximum number of words that appear in a single sentence. Example #1: Input: ("Hello world", "This is a test", "Perl is great") Output: 4 Example #2: Input: ("Single") Output: 1 Example #3: Input: ("Short", "This sentence has six words in total", "A B C", "Just four words here") Output: 7 (The second sentence lied.) Example #4: Input: ("One", ...