in reply to Re: Range of numbers
in thread Range of numbers

Regexp::List (from the same distro) is the appropriate choice when the inputs are text strings (as opposed to regexp patterns).
use Regexp::List qw( ); my $re = Regexp::List->new()->list2re( 250..730 );

In Perl 5.10, the regexp engine already does that for you.

use 5.010; # Trie alternations my ($re) = map qr/$_/, join '|', #map quotemeta, # Not needed this time. 250..730;