This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: output floating pt as strings
authorKarl Williamson <public@khwilliamson.com>
Mon, 5 Sep 2011 04:12:11 +0000 (22:12 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 8 Nov 2011 15:09:18 +0000 (08:09 -0700)
commit02cc66567a9d64714c1f97ec260d2d076498fe53
tree155c4ab19ad0943e0f0deffafb570df9cf788e4c
parentf8c38b143ff7f283ca892731e9a3ee155fabda95
mktables: output floating pt as strings

mktables creates data structures on files that are later read in.  Some
of these are nominally floating point numbers, like 2.0.  But they are
actually version numbers, and if output without being quoted, they will
be read in as just an integer and a string compare will fail.  Actual
floating point numbers are also output, but if these are output enclosed
in quotes, they will be coerced into the correct data type when
necessary.

This fix doesn't correct any known existing problems, but is needed for
future commits.
lib/unicore/mktables