diff options
author | Gisle Aas <gisle@aas.no> | 1997-03-26 13:54:00 +0100 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-03-26 07:04:34 +1200 |
commit | 0aa182cb0caa3829032904b9754807b1b7418509 (patch) | |
tree | 62bfb7894930ec091259aca3581dc52464d8f3a0 | |
parent | 35a731fcbcd7860eb497d6598f3f77b8746319c4 (diff) | |
download | perl-0aa182cb0caa3829032904b9754807b1b7418509.tar.gz |
perlvar.pod patch
p5p-msgid: 199703261254.NAA10237@bergen.sn.no
-rw-r--r-- | pod/perlvar.pod | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 1406858331..f655f52d18 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -52,7 +52,7 @@ The default input and pattern-searching space. The following pairs are equivalent: while (<>) {...} # equivalent in only while! - while ($_ = <>) {...} + while (defined($_ = <>)) {...} /^Subject:/ $_ =~ /^Subject:/ @@ -200,7 +200,9 @@ number.) The input record separator, newline by default. Works like B<awk>'s RS variable, including treating empty lines as delimiters if set to the null string. (Note: An empty line cannot contain any spaces or -tabs.) You may set it to a multicharacter string to match a +tabs.) You may set it to C<undef> if you want to treat the whole file +as a single record. +You may set it to a multicharacter string to match a multi-character delimiter. Note that setting it to C<"\n\n"> means something slightly different than setting it to C<"">, if the file contains consecutive empty lines. Setting it to C<""> will treat two @@ -222,7 +224,7 @@ better for something :-) =item $| -If set to nonzero, forces a flush after every write or print on the +If set to nonzero, forces a flush right away and after every write or print on the currently selected output channel. Default is 0 (regardless of whether the channel is actually buffered by the system or not; C<$|> tells you only whether you've asked Perl explicitly to flush after each write). @@ -531,7 +533,8 @@ multiple groups. =item $0 Contains the name of the file containing the Perl script being -executed. Assigning to "C<$0>" modifies the argument area that the ps(1) +executed. On some operating systems +assigning to "C<$0>" modifies the argument area that the ps(1) program sees. This is more useful as a way of indicating the current program state than it is for hiding the program you're running. (Mnemonic: same as B<sh> and B<ksh>.) |