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

Owner: Nobody in particular
Requestors: rrwo [...]

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 infrastructure.

Please report any issues with to