in reply to (jeffa) Re: Expand Ranges in Lists of Numbers
in thread Expand Ranges in Lists of Numbers

Thanks, I didn't even think of doing it that way! :-) I would change
$str =~ s/\s//g;
to
$str =~ s/[^\d-,]//g;
though when handling untrusted data.

As they say, TMTOWTDI.