Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Zipcode Proximity script

by Anonymous Monk
on Mar 31, 2003 at 19:58 UTC ( #247056=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
      while (read_from_file(&newzip, &newlat, &newlon)) {
        mydist = great_circle_distance(newlat,newlon,origlat,origlon);
  2. or download this
      float dist1cosine = cos(25.0 / EARTH_RADIUS);
      float dist2cosine = cos(50.0 / EARTH_RADIUS);
  3. or download this
       static inline float great_circle_distance_cosine(float lat1,
                                                 float long1,
                          sin(lat1) sin(lat2) */
               return (temp1 + temp2);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://247056]
[marioroy]: choroba++, Discipulus++. It depends on the type of module. Data-type "only" modules are likely multi-process safe, re: Hash::Ordered, Tie::IxHash.
[marioroy]: ... when shared via MCE::Share-> share(...)
[marioroy]: Net type modules are likely not multi-process safe unless stated in the documentation.
[marioroy]: The Prima author fixed his module to be both thread and multi-process safe. Thanks Dmitry.
[marioroy]: Of all the GUI-type modules, Prima was the worst regarding thread/multi- process safety. Now, it's the best for safety. ;-)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-09-22 10:13 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (260 votes). Check out past polls.