I was able to accomplish my task 10 minutes after I encountered this module on MetaCPAN.
It takes in ranges of numbers and allows you to manipulate the data. My only issue with the module is restricted acceptable format. To specify a range you use ".." and "-" is not allowed ("-" is what my input from the user was going to be). The other issue is that the module allows separation of numbers either with a comma or a space, but it's an error to use a space right after a comma (e.g. "10, 20").
The module dies with an error message if an incorrect range is specificed.