Subject: | Issue with version.pm, locales, threads, and grues |
Hi John,
this is probably going to be a somewhat fuzzy description of the issue.
Please accept my apologies.
version.pm's VERSION needs to be set as a string, not a float. If it's a
float and locales are set to use , as radix, the eval that tries to load
version::vxs will fail because $VERSION interpolates to 0,76 which will
be interpreted as a list by the compiler, the pp_require hook won't
consider it a version, Exporter will be used instead and... the rest is
history.
While pestering #p5p about this, I was also made aware that the eval
should really add a '1;' to the end of the "use version::vxs $VERSION"
to become "use version::vxs $VERSION; 1;". This is because apparently,
older perls have issues otherwise.
I would supply a formal patch, but since this is a one-line change, I
assume you're fine without.
Thanks for reading and especially thanks for enduring all the horror
that is required to get saner versions in perl!
Best regards,
Steffen