diff options
author | Tom Christiansen <tchrist@perl.com> | 1998-06-13 16:19:32 -0600 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-15 01:37:12 +0000 |
commit | 5a964f204835a8014f4ba86fc91884cff958ac67 (patch) | |
tree | b1ad7153799ba133ce772012c9dc05ea615f1c6e /pod/perlform.pod | |
parent | ad973f306c11e119dc3a8448590409962bde25db (diff) | |
download | perl-5a964f204835a8014f4ba86fc91884cff958ac67.tar.gz |
documentation update from tchrist
Message-Id: <199806140419.WAA20549@chthon.perl.com>
Subject: doc patches
p4raw-id: //depot/perl@1132
Diffstat (limited to 'pod/perlform.pod')
-rw-r--r-- | pod/perlform.pod | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pod/perlform.pod b/pod/perlform.pod index 0b2a68c3d4..6b65e04303 100644 --- a/pod/perlform.pod +++ b/pod/perlform.pod @@ -233,11 +233,11 @@ of the page, however wide it is." You have to specify where it goes. The truly desperate can generate their own format on the fly, based on the current number of columns, and then eval() it: - $format = "format STDOUT = \n"; - . '^' . '<' x $cols . "\n"; - . '$entry' . "\n"; - . "\t^" . "<" x ($cols-8) . "~~\n"; - . '$entry' . "\n"; + $format = "format STDOUT = \n" + . '^' . '<' x $cols . "\n" + . '$entry' . "\n" + . "\t^" . "<" x ($cols-8) . "~~\n" + . '$entry' . "\n" . ".\n"; print $format if $Debugging; eval $format; @@ -295,7 +295,7 @@ For example: print "Wow, I just stored `$^A' in the accumulator!\n"; -Or to make an swrite() subroutine which is to write() what sprintf() +Or to make an swrite() subroutine, which is to write() what sprintf() is to printf(), do this: use Carp; @@ -315,18 +315,18 @@ is to printf(), do this: =head1 WARNINGS -The lone dot that ends a format can also prematurely end an email +The lone dot that ends a format can also prematurely end a mail message passing through a misconfigured Internet mailer (and based on experience, such misconfiguration is the rule, not the exception). So -when sending format code through email, you should indent it so that +when sending format code through mail, you should indent it so that the format-ending dot is not on the left margin; this will prevent -email cutoff. +SMTP cutoff. Lexical variables (declared with "my") are not visible within a format unless the format is declared within the scope of the lexical variable. (They weren't visible at all before version 5.001.) -Formats are the only part of Perl which unconditionally use information +Formats are the only part of Perl that unconditionally use information from a program's locale; if a program's environment specifies an LC_NUMERIC locale, it is always used to specify the decimal point character in formatted output. Perl ignores all other aspects of locale |