summaryrefslogtreecommitdiff
path: root/lib/Tie
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-05 03:08:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-05 03:08:50 +0000
commitcc41e030aee962e8de09f50966d0305d27c701ea (patch)
tree9e49bc062e09c719a56035c0bc5b4f5980072645 /lib/Tie
parent940adb212947ed440b591a12472a779ec902ee6e (diff)
downloadperl-cc41e030aee962e8de09f50966d0305d27c701ea.tar.gz
Tie::File doc tweak for Win32 from mjd.
p4raw-id: //depot/perl@15035
Diffstat (limited to 'lib/Tie')
-rw-r--r--lib/Tie/File.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Tie/File.pm b/lib/Tie/File.pm
index aeceb1b123..15ccaa9182 100644
--- a/lib/Tie/File.pm
+++ b/lib/Tie/File.pm
@@ -670,8 +670,9 @@ Changes to the array are reflected in the file immediately.
What is a 'record'? By default, the meaning is the same as for the
C<E<lt>...E<gt>> operator: It's a string terminated by C<$/>, which is
-probably C<"\n"> or C<"\r\n">. You may change the definition of
-"record" by supplying the C<recsep> option in the C<tie> call:
+probably C<"\n">. You may change the definition of "record" by
+supplying the C<recsep> option in the C<tie> call:
+
tie @array, 'Tie::File', $file, recsep => 'es';
@@ -686,6 +687,9 @@ then the C<@array> would appear to have four elements:
"ky flies"
"!\n"
+Windows users will probably want to use C<recsep =E<gt> "\r\n"> to get
+files terminated with the usual CRLF sequence.
+
An undefined value is not permitted as a record separator. Perl's
special "paragraph mode" semantics (E<agrave> la C<$/ = "">) are not
emulated.