http://qs321.pair.com?node_id=216276


in reply to limits

Uh, you could use the numerical comparison... why are you using the ASCII comparison?

I think that there are some conceptual problems here that the following code might help:

my @number = (); for (my $i = 0; $i < @column_1; $i++) { if (($column_1[$i] >= 8 && $column_1[$i] <= 52) && ($column_2[$i] >= 98 && $column_2[$i] <= 202)) { push @number, join(' ', $column_1[$i], $column_2[$i]); } } foreach (@number) { print $_ . "\n"; }

If you're looking for something more subtle where the fuzziness of the match is unclear then you'd have to improve this approach substantially.

HTH