From: Jarkko Hietaniemi Date: Tue, 5 Mar 2002 03:08:50 +0000 (+0000) Subject: Tie::File doc tweak for Win32 from mjd. X-Git-Tag: accepted/trunk/20130322.191538~27768 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc41e030aee962e8de09f50966d0305d27c701ea;p=platform%2Fupstream%2Fperl.git Tie::File doc tweak for Win32 from mjd. p4raw-id: //depot/perl@15035 --- diff --git a/lib/Tie/File.pm b/lib/Tie/File.pm index aeceb1b..15ccaa9 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> 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 option in the C call: +probably C<"\n">. You may change the definition of "record" by +supplying the C option in the C 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 "\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 la C<$/ = "">) are not emulated.