Subject: | "scalar(%hash)" return signature changed |
Since perl 5.25.3 t/Tie-Hash-Check/10-scalar.t fails:
# Failed test 'Get scalar value of hash.'
# at t/Tie-Hash-Check/10-scalar.t line 16.
# '2'
# doesn't match '(?^:\d/8)'
# Looks like you failed 1 test of 2.
t/Tie-Hash-Check/10-scalar.t ....
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
Probably the relevant change from perl 5.25.3's perldelta document:
"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.