Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Faulty Control Structures?

by Errto (Vicar)
on Jan 28, 2008 at 20:33 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found