Comments (1)
From [email protected]
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 <FH>.
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 <IN>;
# *** 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====
Perl Info
Site configuration information for perl 5.00503:
Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86
uname=''
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cl.exe', optimize='-O2 -MD -DNDEBUG', gccversion=
cppflags='-DWIN32'
ccflags ='-O2 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT '
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
alignbytes=8, usemymalloc=n, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
libpth=E:\PROGRA~1\MICROS~1\VC98\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl.lib
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-machine:x86'
Locally applied patches:
@INC for perl 5.00503:
c:\perl\lib/MSWin32-x86
c:\perl\lib
c:\perl\site\lib/MSWin32-x86
c:\perl\site\lib
.
Environment for perl 5.00503:
HOME (unset)
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=E:\WINNT\system32;E:\WINNT;E:\Program Files\Microsoft Visual
Studio\Common\Tools\WinNT;E:\Program Files\Microsoft Visual
Studio\Common\MSDev98\Bin;E:\Program Files\Microsoft Visual
Studio\Common\Tools;E:\Program Files\Microsoft Visual
Studio\VC98\bin;;c:\perl\bin;c:\cygnus\b19\H-i386~1\bin;c:\windows\roncmd;c:
\siw95\util16;C:\PROGRA~1\NETWOR~1\MCAFEE~1
PERL_BADLANG (unset)
SHELL (unset)
--
Ron Parker
GW Micro, Inc.
Voice 219-489-3671
Fax 219-489-2608 BBS 219-489-5281
from perl5.
Related Issues (20)
- Feature request: generate warnings in void context in assignment statements HOT 3
- [doc] Wrong variable name in example HOT 3
- [MSWin] perl-5.40.0 fails to build with gcc-14.1.0 when mingw runtime version is 12.0.0. HOT 2
- builtin::stringify not documented as experimental HOT 1
- Feature 'class' Segmentation fault in DESTROY phase for improperly constructed instance HOT 6
- Phaser: what does that mean in Perl context? HOT 3
- [doc] Plural Objects HOT 3
- [doc] The to This HOT 1
- `__CLASS__` doesn't issue an experimental warning HOT 2
- ****
- Cross-compilation for FreeBSD doesn't detect crypt support HOT 16
- Make Data::Dumper boolean aware. HOT 3
- ext/POSIX/POSIX.xs: Recent commit triggers build-time warnings HOT 1
- Bug: File::Spec->path() doesn't keep trailing empty elements HOT 9
- [doc] perlclass is not linked to in obvious places
- POSIX::strftime: modified behavior surprises users HOT 2
- TEST 09_roundtrip.t fails in 5.40.0 RELEASE HOT 2
- BBC: Blead Breaks EV HOT 7
- BBC: Blead Breaks PDL HOT 9
- chdir doesn't return a boolean, but manual says it returns true/false
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perl5.