Luckily, there is a module that can handle a string such as the one you've shown, Set::IntSpan
I'm not sure why I continue to be surprised...but...
It still amazes me just how many really useful modules are shared in the Monastery every day!
In reply to Re^2: Comparing a value to a list of numbers
by Bod
in thread Comparing a value to a list of numbers
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |