Skip Menu |

This queue is for tickets about the Memoize-Expire-ByInstance CPAN distribution.

Report information
The Basics
Id: 117332
Status: new
Priority: 0/
Queue: Memoize-Expire-ByInstance

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

Bug Information
Severity: (no value)
Broken in: 0.500005
Fixed in: (no value)



Subject: "scalar(%hash)" return signature changed
t/test_memoize_expire_by_instance.t started to fail with since 5.25.3: # Failed test 'test hash validity' # at t/test_memoize_expire_by_instance.t line 289. # (in Test::Memoize::Expire::ByInstance->test_hash_validity) # got: '1' # expected: '1/8' # Sleeping 5 seconds # Looks like you failed 1 test of 49. t/test_memoize_expire_by_instance.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/49 subtests This is mentioned in perl 5.25.3's perldelta.pod: "scalar(%hash)" return signature changed The value returned for "scalar(%hash)" will no longer show information about the buckets allocated in the hash. It will simply return the count of used keys. It is thus equivalent to "0+keys(%hash)". A form of backwards compatibility is provided via "Hash::Util::bucket_ratio()" which provides the same behavior as "scalar(%hash)" provided prior to Perl 5.25.