The error message is:

Cannot find method 'postcircumfix:<( )>'
  in method _normalize_output at
/usr/local/people/tbrowde/mydata/tbrowde-home-bzr/perl6/my-perl6-repos/Geo-Ellipsoid/test/../lib/Geo/Ellipsoid.pm:995
  in method to at
/usr/local/people/tbrowde/mydata/tbrowde-home-bzr/perl6/my-perl6-repos/Geo-Ellipsoid/test/../lib/Geo/Ellipsoid.pm:678
  in sub print_dist at test_ellipsoid.pl:181
  in sub MAIN at test_ellipsoid.pl:69
  in block <unit> at test_ellipsoid.pl:25

Line 995 is in this method:

method !_normalize_output(*@args)
{
  my @a = @args;
  my $elem = shift @a; # 'bearing' or 'longitude'
  # adjust remaining input values by reference
  for (@a) <-> $_ { # <-> is 'read-write' operator
    if (self.$elem) { # <======= LINE 995 =============== LINE 995
      # normalize to range [-pi,pi)
      while ($_ < -(pi)) { $_ += $twopi }
      while ($_ >= pi)   { $_ -= $twopi }
    } else {
      # normalize to range [0,2*pi)
      while ($_ <  0)      { $_ += $twopi }
      while ($_ >= $twopi) { $_ -= $twopi }
    }
    $_ = self!rad2deg($_) if self.units eq 'degrees';
  }
  return @a;
}

Any hints would be appreciated.

Best regards,

-Tom

Reply via email to