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

Re: Lookup closest hash key

by nif (Sexton)
on Jan 25, 2011 at 16:20 UTC ( #884167=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print q{closest_city(290)="}, closest_city(290), qq{"\n}; 
    print q{closest_city(500)="}, closest_city(500), qq{"\n}; 
    print q{closest_city(5000)="}, closest_city(5000), qq{"\n}; 
    
  2. or download this
    closest_city(5)="London"
    closest_city(149)="London"
    ...
    closest_city(290)="Rome"
    closest_city(500)="Berlin"
    closest_city(5000)="Berlin"
    
  3. or download this
                  250
                 /   \ 
    ...
         100   200   300  600
          |     |     |    |
      London  Paris  Rome  Berlin
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-12-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls