Hello List, I'm tyring to find the distance in miles between two sets of coordinates by using the module Math::Trig
I'm expecting the return distance to be around 16.91 miles. Any help is greatly appriciated. Chris #!/usr/bin/perl use strict; use warnings; use Math::Trig qw(pi great_circle_distance); my $LAT1 = 39.316858; my $LAT2 = 39.243556; my $LONG1 = -94.963194; my $LONG2 = -94.6617; print great_circle_distance($LONG1, pi/2 - $LAT1, $LONG2, pi/2 - $LAT2); -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/