Subject: | XS version of _HASH fails on tied hashes |
Perl v5.28.1
If the XS version of_HASH is passed a tied hash, it returns false. I've tried this with both Tie::IxHash and Readonly, with the same results:
PERL_PARAMS_UTIL_PP=1 perl -MParams::Util=_HASH -MTie::IxHash \
-E '$t = tie(my %h, q(Tie::IxHash), 1, 2 ); say q(I am a ), ref \%h; say q(Does Params::Util agree? ), _HASH(\%h) ? q(yes) : q(no)'
I am a HASH
Does Params::Util agree? yes
PERL_PARAMS_UTIL_PP=0 perl -MParams::Util=_HASH -MTie::IxHash \
-E '$t = tie(my %h, q(Tie::IxHash), 1, 2 ); say q(I am a ), ref \%h; say q(Does Params::Util agree? ), _HASH(\%h) ? q(yes) : q(no)'
I am a HASH
Does Params::Util agree? no
Similarly with Readonly:
PERL_PARAMS_UTIL_PP=1 perl -MParams::Util=_HASH -MReadonly \
-E 'Readonly::Hash my %h => ( 1, 2 ); say q(I am a ), ref \%h; say q(Does Params::Util agree? ), _HASH(\%h) ? q(yes) : q(no)'
I am a HASH
Does Params::Util agree? yes
PERL_PARAMS_UTIL_PP=0 perl -MParams::Util=_HASH -MReadonly \
-E 'Readonly::Hash my %h => ( 1, 2 ); say q(I am a ), ref \%h; say q(Does Params::Util agree? ), _HASH(\%h) ? q(yes) : q(no)'
I am a HASH
Does Params::Util agree? no
Thanks!
Diab