in reply to Array Exclusion Operationss

Could it be:
$data[23] =~ s/-/\.\./; # convert - to .. perl syntax ^^^^^ ... push(@range,eval $array[23]); # i expanded here ^^^^^^
Also, you are forgetting a /g modifier on your regex:
$data[23] =~ s/-/\.\./g;
Those two changes should fix your problem.