Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Sorting by geographical proximity / clumping groups of items based on X and Y

by DamnDirtyApe (Curate)
on Jul 17, 2002 at 23:22 UTC ( #182638=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
        my ($x1, $y1, $x2, $y2 ) = @_ ;
        return sqrt( abs( $x2 - $x1 )**2 + abs( $y2 - $y1 )**2 ) ;
    }
    
  2. or download this
    #! /usr/bin/perl
    
    ...
    e753 35.6 2.2
    f854 76.5 46.7
    g354 8.7  8.6
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2022-12-06 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?