Subject: | Warnings |
There are warnings when loading Astro::Sunrise:
perl -w -MAstro::Sunrise -e1
Subroutine Astro::Sunrise::tan redefined at
usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
Subroutine Astro::Sunrise::asin redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
Subroutine Astro::Sunrise::acos redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
Subroutine Astro::Sunrise::atan redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
Subroutine Astro::Sunrise::sinh redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
Subroutine Astro::Sunrise::cosh redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
Subroutine Astro::Sunrise::tanh redefined at /usr/local/lib/perl5/5.8.0/Exporter.pm line 59.
at /usr/local/lib/perl5/site_perl/5.8.0/Astro/Sunrise.pm line 83
It seems that this is a clash loading both POSIX and Math::Trig, both
of them defining the same functions. The fix would be to implicitely
import the needed functions, either
use POSIX qw(sinh ....);
use Math::Trig ();
or
use Math::Trig qw(sinh ...);
use POSIX ();
Regards,
Slaven