Help for this page

Select Code to Download


  1. or download this
    Given two ranges, do the following:
    1) check if  the start or the end of each range  deviate by more than 
    +five 
    2) check if the intersection of the range is at least half its union
    
  2. or download this
    use Set::IntSpan;
    
    ...
    
    if($diff_between_starts<=5 && $diff_between_ends<=5) {print "ALL IS OK
    +\n";} 
    else {print "PROBLEM\n";}