Subject: | Scalar::Util looks_like_number is true for array/hash refs |
Following code illustrates the bug:
use Scalar::Util 'looks_like_number';
my $a = [ ];
my $h = { };
print looks_like_number($a), "\n";
print looks_like_number($h), "\n";
It should not return true values, since array and hash references aren't numbers. (They certainly don't look like numbers to me.)
This may be an issue with the PerlAPI though....