Closed p5pRT closed 21 years ago
The following short script should write a file called testfile
and a file called test_two to the current directory. It seems
that both files should be identical\, but in fact one of the LF
characters is missing from test_two. The script works as
expected if read is used instead of \
It is probably relevant that this report was generated on Windows 2000 beta 3 RC 0\, but the error also manifests on a separate machine running Windows NT4 Server with Service Pack 5 installed.
-------- cut here ---->8==== open (OUT\, ">testfile"); binmode OUT; print OUT "\x65\x0a\x0a\x0a\x66"; close OUT;
open (IN\, "\<testfile"); open (OUT\, ">test_two"); binmode IN; binmode OUT; $/=0777;
# *** The following line does not work
print OUT \
# *** Replace it with the following two lines and it works. #read (IN\, $buf\, -s IN ); #print OUT $buf;
close IN; close OUT; -------- cut here ---->8====
Migrated from rt.perl.org#852 (status was 'resolved')
Searchable as RT852$