This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
overload.pm: add a missing 'exists'
authorDan Collins <dcollinsn@gmail.com>
Tue, 11 Oct 2016 18:54:16 +0000 (14:54 -0400)
committerDavid Mitchell <davem@iabyn.com>
Mon, 26 Dec 2016 12:03:10 +0000 (12:03 +0000)
commit6b776407d46448d59a69054c8cd4cec4d91f50c0
treeb063a12f3adf78971c3e1e575e3fdaf6ed3722d8
parentb1b8fb6a79343831521b5657b353f551f7a35074
overload.pm: add a missing 'exists'

607ee4356 changed the hash of permitted ops from having '1' as a value
to having undef as a value. This also changed one of the warning points
from checking for truthiness to existence. However, a second warning
was accidentally left checking for truthiness. This commit fixes that
oversight, and adds a regression test for warnings in this case.
lib/overload.pm
t/lib/overload_fallback.t