Subject: | odd interactions with version::vxs and Readonly on 5.12 |
perl -Mversion -e 'Readonly::Scalar our $ver => 1.01; version->new($ver)'
Invalid version format (non-numeric data) at -e
This is with the latest versions of version, Readonly, and Readonly::XS, but on an older perl (5.12). I don't have this exact setup on later perl versions, so I'm not sure if it's perl-version-dependent or not. This also does not occur with version::vpp, nor with a non-readonly version, and if I either stringify (with "$ver") or numify (with 0+$ver), the problem disappears, so I suspect it's something to do with the SV flags that Readonly::XS fiddles with not interacting right with version::vxs.
I've had to compile version with XS disabled to get around it. A way of disabling version::vxs at import time with an environment variable would be much appreciated.