diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-02-19 19:04:24 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-02-19 19:04:24 -0800 |
commit | 6dd37ebe0d5c3ac968db801a6af200bb7f252ffb (patch) | |
tree | 4d63a45079f9b2713ba10cb1e1e70f3498940680 /pod/perlform.pod | |
parent | 6eecded3077c953679e6e6139fd5d033bfd9eeac (diff) | |
download | perl-6dd37ebe0d5c3ac968db801a6af200bb7f252ffb.tar.gz |
perlform tweaks
Diffstat (limited to 'pod/perlform.pod')
-rw-r--r-- | pod/perlform.pod | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pod/perlform.pod b/pod/perlform.pod index 6a6a83ae3a..a2aa6588b7 100644 --- a/pod/perlform.pod +++ b/pod/perlform.pod @@ -65,7 +65,7 @@ X<@*> X<^*> X<~> X<~~> < pad character for left justification | pad character for centering > pad character for right justification - # pad character for a right justified numeric field + # pad character for a right-justified numeric field 0 instead of first #: pad number with leading zeroes . decimal point within a numeric field ... terminate a text field, show "..." as truncation evidence @@ -122,7 +122,7 @@ filled with "#" as overflow evidence. 42 3.142 0.000 0 #### -=head2 The Field @* for Variable Width Multi-Line Text +=head2 The Field @* for Variable-Width Multi-Line Text X<@*> The field "@*" can be used for printing multi-line, nontruncated @@ -130,10 +130,10 @@ values; it should (but need not) appear by itself on a line. A final line feed is chomped off, but all other characters are emitted verbatim. -=head2 The Field ^* for Variable Width One-line-at-a-time Text +=head2 The Field ^* for Variable-Width One-line-at-a-time Text X<^*> -Like "@*", this is a variable width field. The value supplied must be a +Like "@*", this is a variable-width field. The value supplied must be a scalar variable. Perl puts the first line (up to the first "\n") of the text into the field, and then chops off the front of the string so that the next time the variable is referenced, more of the text can be printed. @@ -182,7 +182,7 @@ the field, and then chops off the front of the string so that the next time the variable is referenced, more of the text can be printed. (Yes, this means that the variable itself is altered during execution of the write() call, and is not restored.) The next portion of text is determined by -a crude line breaking algorithm. You may use the carriage return character +a crude line-breaking algorithm. You may use the carriage return character (C<\r>) to force a line break. You can change which characters are legal to break on by changing the variable C<$:> (that's $FORMAT_LINE_BREAK_CHARACTERS if you're using the English module) to a @@ -291,7 +291,7 @@ one to affect them: Pretty ugly, eh? It's a common idiom though, so don't be too surprised when you see it. You can at least use a temporary variable to hold the previous filehandle: (this is a much better approach in general, -because not only does legibility improve, you now have intermediary +because not only does legibility improve, you now have an intermediary stage in the expression to single-step the debugger through): $ofh = select(OUTF); @@ -448,7 +448,7 @@ to specify the decimal point character in formatted output. Formatted output cannot be controlled by C<use locale> at the time when write() is called. See L<perllocale> for further discussion of locale handling. -Within strings that are to be displayed in a fixed length text field, +Within strings that are to be displayed in a fixed-length text field, each control character is substituted by a space. (But remember the special meaning of C<\r> when using fill mode.) This is done to avoid misalignment when control characters "disappear" on some output media. |