Hi,
when I turn on -W in one of my perl scripts then I get a lot of warnings concerning Math::Complex
Prototype mismatch: sub Math::Complex::abs (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 667.
Prototype mismatch: sub Math::Complex::sqrt (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 718.
Prototype mismatch: sub Math::Complex::exp (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 849.
Prototype mismatch: sub Math::Complex::log (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 888.
Prototype mismatch: sub Math::Complex::cos (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 935.
Prototype mismatch: sub Math::Complex::sin (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 952.
Prototype mismatch: sub Math::Complex::sqrt (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 718.
Prototype mismatch: sub Math::Complex::exp (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 849.
Prototype mismatch: sub Math::Complex::log (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 888.
Prototype mismatch: sub Math::Complex::cos (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 935.
Prototype mismatch: sub Math::Complex::sin (_) vs none at /usr/share/perl/5.22/Math/Complex.pm line 952.
Even in a simple script like this, the warnings appear.
-----------------------------
#!/usr/bin/perl -W
use Math::Complex;
print "Done\n";
----------------------------
It seems to me like the the complex module is not compatible with newer Perl versions.
However, I couldn't find a newer version of the module.
So, I'm not sure if these warnings are an issue or if they can be ignored? And is there a way to fix it?
I would by very glad if somebody could shed some light on this.
My perl version is 5.22.1 and Math::Complex 1.59;
Thank you very much in advance!
Best regards,
Simon