X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperldata.pod;h=29004f04d09ef2e2605f4dea60a93a75910e1f83;hb=3c295041e5d570578f09b8e99de0a179cc172164;hp=82ad8556c85c1e0315b16ee6ca5bfd1ba0c9624f;hpb=d74e8afc9309529cf5c6c4390fc311850865d506;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perldata.pod b/pod/perldata.pod index 82ad855..29004f0 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -337,6 +337,12 @@ X There is no double interpolation in Perl, so the C<$100> is left as is. +By default floating point numbers substituted inside strings use the +dot (".") as the decimal separator. If C is in effect, +and POSIX::setlocale() has been called, the character used for the +decimal separator is affected by the LC_NUMERIC locale. +See L and L. + As in some shells, you can enclose the variable name in braces to disambiguate it from following alphanumerics (and underscores). You must also do @@ -379,7 +385,7 @@ Unicode strings, and for comparing version "numbers" using the string comparison operators, C, C, C etc. If there are two or more dots in the literal, the leading C may be omitted. - print v9786; # prints UTF-8 encoded SMILEY, "\x{263a}" + print v9786; # prints SMILEY, "\x{263a}" print v102.111.111; # prints "foo" print 102.111.111; # same @@ -419,7 +425,7 @@ token was encountered. The filehandle is left open pointing to the contents after __DATA__. It is the program's responsibility to C when it is done reading from it. For compatibility with older scripts written before __DATA__ was introduced, __END__ behaves -like __DATA__ in the toplevel script (but not in files loaded with +like __DATA__ in the top level script (but not in files loaded with C or C) and leaves the remaining contents of the file accessible via C.