in reply to Why am I getting message «Operation "<=>": no method found,» ?

Try
my $km = $gis->distance( $from_lat, $from_long => $to_lat, $to_long, ) ->value('km');
poj
  • Comment on Re: Why am I getting message «Operation "<=>": no method found,» ?
  • Download Code

Replies are listed 'Best First'.
Re^2: Why am I getting message «Operation "<=>": no method found,» ?
by RCH (Sexton) on Aug 01, 2015 at 15:40 UTC

    Thank you!

    my $km = $gis->distance( $from_lat, $from_long => $to_lat, $to_long, )->value('km');

    Works purrfectly