in reply to Better Logic?

No I can't, because the quadrant doesn't neccessarily have to be or will be for that matter a perfect square. maybe I should have used different data with my example, I need to support this type as well:

@nw=qw(5,35); @ne=qw(30,42); @se=qw(28,3); @sw=qw(1,2);

Replies are listed 'Best First'.
Re: Re: Better Logic?
by merlyn (Sage) on Mar 21, 2001 at 01:50 UTC
    So would something along the line between nw and sw be in or out? What if it's just a bit west of the line but not west of both nw/sw? What if it's a bit east, but still west of either sw or nw?

    In other words, are you now doing real math to see if it's inside? Because your last example wouldn't work with this dataset either. {grin}

    -- Randal L. Schwartz, Perl hacker