summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-09-08 22:09:04 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-09-08 22:09:04 +0000
commit303f2f76425edd3b59c90912b081ea27ca197620 (patch)
treee97fc46739cb58cb43f59ea44ee8391da0bd4487 /pod
parent5e378fdf771d0a60d95ee1eed3e78057436dc10c (diff)
downloadperl-303f2f76425edd3b59c90912b081ea27ca197620.tar.gz
perl 5.003_05: pod/perlvar.pod
Be explicit about $/="" matching empty lines, that is, lines with no spaces or tabs. Change blank lines to empty lines.
Diffstat (limited to 'pod')
-rw-r--r--pod/perlvar.pod19
1 files changed, 10 insertions, 9 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod
index 0248fe0719..9f5d4c241a 100644
--- a/pod/perlvar.pod
+++ b/pod/perlvar.pod
@@ -198,14 +198,15 @@ number.)
=item $/
The input record separator, newline by default. Works like B<awk>'s RS
-variable, including treating blank lines as delimiters if set to the
-null string. You may set it to a multicharacter string to match a
+variable, including treating empty lines as delimiters if set to the
+null string. (Note: An empty line can not contain any spaces or
+tabs.) 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 blank lines. Setting it to C<""> will treat two or
-more consecutive blank lines as a single blank line. Setting it to
-C<"\n\n"> will blindly assume that the next input character belongs to the
-next paragraph, even if it's a newline. (Mnemonic: / is used to
+contains consecutive empty lines. Setting it to C<""> will treat two
+or more consecutive empty lines as a single empty line. Setting it to
+C<"\n\n"> will blindly assume that the next input character belongs to
+the next paragraph, even if it's a newline. (Mnemonic: / is used to
delimit line boundaries when quoting poetry.)
undef $/;
@@ -610,8 +611,8 @@ based on this value.
=item $^W
-The current value of the warning switch, either TRUE or FALSE. (Mnemonic: related to the
-B<-w> switch.)
+The current value of the warning switch, either TRUE or FALSE.
+(Mnemonic: related to the B<-w> switch.)
=item $EXECUTABLE_NAME
@@ -642,7 +643,7 @@ to also get the machine-dependent library properly loaded:
use lib '/mypath/libdir/';
use SomeMod;
-
+
=item %INC
The hash %INC contains entries for each filename that has