Perl Weekly Challenge 114: Next Palindrome Number and Higher Integer Set Bits
These are some answers to the Week 114 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a few days (May 30, 2021). This blog post offers some solutions to this challenge, please don’t read on if you intend to complete the challenge on your own.
Task 1: Next Palindrome Number
You are given a positive integer $N.
Write a script to find out the next Palindrome Number higher than the given integer $N.
Example:
Input: $N = 1234
Output: 1331
Input: $N = 999
Output: 1001




