From: Johan Vromans Date: Sun, 9 Jun 2002 12:53:01 +0000 (+0200) Subject: [Patch] "#0" format in perlform X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0f1f432106978ae5935b254430dd7045c4e76d3d;p=p5sagit%2Fp5-mst-13.2.git [Patch] "#0" format in perlform Message-ID: <15619.13197.892587.565630@phoenix.squirrel.nl> p4raw-id: //depot/perl@17130 --- diff --git a/pod/perlform.pod b/pod/perlform.pod index 53e348f..fac7efc 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