Skip Menu |
 

This queue is for tickets about the Scalar-List-Utils CPAN distribution.

Report information
The Basics
Id: 8510
Status: resolved
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.14
Fixed in: (no value)



Subject: Scalar::Util looks_like_number is true for array/hash refs
Download (untitled) / with headers
text/plain 361b
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....


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.