Robbie Hatley’s Solutions, in Perl, for The Weekly Challenge #402 (“Letters Only Hex” and “Circular String Rotations”)
For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle with two tasks, with a new pair of tasks each Monday. You can find it here: The Weekly Challenge The Weekly Challenge for the week of 2026-11-30 through 2026-12-06 is #402. The tasks for this challenge are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 402-1: Letters Only Hex Submitted by: Mohammad Sajid Anwar You are given a string representing a decimal integer >= 1 without leading zeros. Write a script that to convert the given string into its uppercase hexadecimal representation. Replace every digit ‘0’ with the letter ‘O’, also replace every digit ‘1’ with the letter ‘I’. The resulting string should only contain characters: ‘A’, ‘B’, ‘C’, ‘D’, ‘E’, ‘F’, ‘I’, and ‘O’. To solve this problem, I'll use the excellent base-conversion routines in CPAN module "Math::BigInt" to make the hex version, use "y" to transliterate al...