Subject: | [PATCH] Suppress overload warning |
There is no ‘tan’ overloading, as there is no ‘tan’ operator.
Due to a perl bug (#108778), this warning (new in bleadperl) only happens if overload.pm is
loaded first:
$ ./perl -Ilib -Moverload -MMath::Complex -e ''
overload arg 'tan' is invalid at Lib/Math/Complex.pm line 132
Subject: | open_zsUn1MLG.txt |
diff --git Math-Complex/lib/Math/Complex.pm Math-Complex/lib/Math/Complex.pm
index f3a891b..ec39498 100644
--- a/cpan/Math-Complex/lib/Math/Complex.pm
+++ b/cpan/Math-Complex/lib/Math/Complex.pm
@@ -150,7 +150,6 @@ use overload
'log' => \&log,
'sin' => \&sin,
'cos' => \&cos,
- 'tan' => \&tan,
'atan2' => \&atan2,
'""' => \&_stringify;