Problems? Is your data what you think it is? | |
PerlMonks |
Re: comparing ranges of numbers between 2 filesby LanX (Saint) |
on Oct 15, 2017 at 11:15 UTC ( [id://1201399]=note: print w/replies, xml ) | Need Help?? |
Since you only need to see if it's contained it's simply
checking
$a1 < $b1 and $a2 > $b2 for each combination of lines from file A and B. you can use my ($a1, $a2) = split '-', $line to split the ranges.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|