diff options
author | Johan Vromans <jvromans@squirrel.nl> | 2002-06-09 14:53:01 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-09 15:10:18 +0000 |
commit | 0f1f432106978ae5935b254430dd7045c4e76d3d (patch) | |
tree | 31e42d14673f43987509e7cae8236b1b417ab2eb /pod/perlform.pod | |
parent | f69c1b32fbc1a1348f4cb6eadbb919fc9d0341cb (diff) | |
download | perl-0f1f432106978ae5935b254430dd7045c4e76d3d.tar.gz |
[Patch] "#0" format in perlform
Message-ID: <15619.13197.892587.565630@phoenix.squirrel.nl>
p4raw-id: //depot/perl@17130
Diffstat (limited to 'pod/perlform.pod')
-rw-r--r-- | pod/perlform.pod | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pod/perlform.pod b/pod/perlform.pod index 53e348f7b3..fac7efca35 100644 --- a/pod/perlform.pod +++ b/pod/perlform.pod @@ -60,11 +60,13 @@ justification, or centering. If the variable would exceed the width specified, it is truncated. As an alternate form of right justification, you may also use "#" -characters (with an optional ".") to specify a numeric field. This way -you can line up the decimal points. If any value supplied for these -fields contains a newline, only the text up to the newline is printed. -Finally, the special field "@*" can be used for printing multi-line, -nontruncated values; it should appear by itself on a line. +characters (with an optional ".") to specify a numeric field. This way +you can line up the decimal points. With a "0" (zero) instead of the +first "#", the formatted number will be padded with leading zeroes if +necessary. If any value supplied for these fields contains a newline, +only the text up to the newline is printed. Finally, the special field +"@*" can be used for printing multi-line, nontruncated values; it +should appear by itself on a line. The values are specified on the following line in the same order as the picture fields. The expressions providing the values should be |