summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-30 13:13:54 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-30 13:13:54 +0000
commitd4ced10d0773d7b2aaa8e52df351060660783e30 (patch)
treed6973aadcdbf3e1af2b766cad642ac999a45d0ea /pod
parent2b112a98074cad38df07dd202ecdfd6f7cfc56fa (diff)
downloadperl-d4ced10d0773d7b2aaa8e52df351060660783e30.tar.gz
More_tweakage.
p4raw-id: //depot/perl@9918
Diffstat (limited to 'pod')
-rw-r--r--pod/perldata.pod15
-rw-r--r--pod/perldiag.pod7
2 files changed, 6 insertions, 16 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod
index 64ea8be765..b7c3b1cecd 100644
--- a/pod/perldata.pod
+++ b/pod/perldata.pod
@@ -278,17 +278,10 @@ integer formats:
0377 # octal
0b011011 # binary
-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 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,
-which depending on the context may mean for example a string constant,
-a function call, or a filehandle.)
+You are allowed to use underscores (underbars) in numeric literals
+between digits for legibility. 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.
String literals are usually delimited by either single or double
quotes. They work much like quotes in the standard Unix shells:
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index a594f53263..eab05567e3 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1872,11 +1872,8 @@ 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 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.)
+(W syntax) An underscore (underbar) in a numeric constant did not
+separate two digits.
=item Missing %sbrace%s on \N{}