> On Feb 9, 2017, at 7:39 AM, Simon Bauer <simo...@web.de> wrote: > > 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.
Put the following in your Perl program to turn on warnings in the enclosing block only (i.e., just your program and not external modules): use warnings; See the following for more information: perldoc warnings perldoc perllexwarn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/