Robbie Hatley's Solutions To The Weekly Challenge #258
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 This week (2024-02-25 through 2024-03-02) is weekly challenge #258. Its tasks are as follows: Task 258-1: Count Even Digits Number Submitted by: Mohammad Sajid Anwar You are given a array of positive integers, @ints. Write a script to find out how many integers have even number of digits. Example 1: Input: @ints = (10, 1, 111, 24, 1000) Output: 3 There are 3 integers having even digits i.e. 10, 24 and 1000. Example 2: Input: @ints = (111, 1, 11111) Output: 0 Example 3: Input: @ints = (2, 8, 1024, 256) Output: 1 I'm "traveling light" this week, so my solutions for 258-1 and 258-2 are about 50 times shorter than the programs I normally write for The Weekly Challenge. My solution for 258-1 is especially short; it uses "grep" to filter @ARGV for numbers with an even number of digi...