Subject: | "overload arg '%s' is invalid" on every internal call to disable_overload |
Date: | Wed, 10 Apr 2013 09:08:20 +0000 |
To: | "bug-Forks-Super [...] rt.cpan.org" <bug-Forks-Super [...] rt.cpan.org> |
From: | "Lewitzki Andreas (Telenor Sverige AB)" <andreas.lewitzki [...] bredband.com> |
Hi!
perl v5.16.0 introduced a new warning:
overload arg '%s' is invalid
This makes Forks::Super default warn on every call to disable_overload ..which it does internaly.
Eg.
overload arg 'lt le gt ge eq ne' is invalid at /opt/perlbrew/perls/perl-5.17.8/lib/site_perl/5.17.8/Forks/Super/Job.pm line 1694.
overload arg '+ - * / % ** << >> x .' is invalid at /opt/perlbrew/perls/perl-5.17.8/lib/site_perl/5.17.8/Forks/Super/Job.pm line 1694.
overload arg 'bool "" 0+ qr' is invalid at /opt/perlbrew/perls/perl-5.17.8/lib/site_perl/5.17.8/Forks/Super/Job.pm line 1694.
overload arg 'nomethod fallback =' is invalid at /opt/perlbrew/perls/perl-5.17.8/lib/site_perl/5.17.8/Forks/Super/Job.pm line 1694.
One resolution could be to change sub disable_overload:
- eval { no overload values %overload::ops; 1 }
+eval { no overload map{split} values %overload::ops; 1 }
Best Regards,
Andreas Lewitzki
Systemutvecklare
Network Support Systems
Telenor Sverige AB