From: Jarkko Hietaniemi Date: Mon, 30 Apr 2001 12:57:03 +0000 (+0000) Subject: T_w_e_a_k_a_g_e. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=303276401ce02209e91d7403e47febe4c4970d96;p=p5sagit%2Fp5-mst-13.2.git T_w_e_a_k_a_g_e. p4raw-id: //depot/perl@9916 --- diff --git a/pod/perldata.pod b/pod/perldata.pod index 42e3af7..64ea8be 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -280,10 +280,10 @@ integer formats: You are allowed to use underscores (underbars) in numeric literals for legibility, as long as the underscores are spaced at least one digit -apart, and they do not begin or end the integer or fractional part. -You could, for example, group binary digits by threes (as for -a Unix-style mode argument such as 0b110_100_100) or by fours -(to represent nibbles, as in 0b1010_0110) or in other groups. +apart, and they do not begin or end the integer or fractional part of +a decimal constant. You could, for example, group binary digits by +threes (as for a Unix-style mode argument such as 0b110_100_100) or by +fours (to represent nibbles, as in 0b1010_0110) or in other groups. (Note that if you try to begin a number with an underscore, it won't even be understood as a number, it will be understood as a bareword, diff --git a/pod/perldiag.pod b/pod/perldiag.pod index e09df2b..a594f53 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1873,9 +1873,10 @@ ended earlier on the current line. =item Misplaced _ in number (W syntax) An underscore (underbar) in a numeric constant either -immediately followed an earlier underscore, or an underscore began or -ended a numeric constant, or its fractional part (in the case of -decimal constants) began or ended with an underscore. +immediately followed an earlier underscore; or an underscore ended a +numeric constant, or, in the case of decimal constants, an underscore +began or ended its fractional part. (If you try to begin a numerical +constant with an underscore, it won't even be recognized as a number.) =item Missing %sbrace%s on \N{}