Range::Integer is a perl module which can be helpful for work with string ranges. WWW: http://search.cpan.org/dist/Range-String/