Subject: | Inconsistent behaviour with XS version |
This works as expected:
perl -Mversion -MModule::CoreList -wle'my $version = $Module::CoreList::version{5.019002}{base}; my $foo = version->parse($version); print $foo'
(prints 2.19)
This does not (prints 0):
perl -Mversion -MModule::CoreList -wle'my $foo = version->parse($Module::CoreList::version{5.019002}{base}); print $foo'
Folks on #toolchain tell me that this is because %version in MCL is a tied hash, and the XS version code is not triggering the tie magic.
(version::vpp works properly.)