Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Faulty Control Structures?

by Errto (Vicar)
on Jan 28, 2008 at 20:33 UTC ( #664769=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            # look to see if the windows don't overlap 
            if ($test lt $window[0]) {return 0;}
            # look to see if the windows don't overlap
            elsif ($test2 lt $probe[0]) {return 0;}
    
  2. or download this
    sub range_overlap {
      my ($start1, $end1, $start2, $end2);
      return ($end1 >= $start2 || $start1 <= $end2) &&
             ($end2 >= $start1 || $start2 <= $end1);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://664769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-05-17 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?