Re: Problem with sysread()

2009-08-22 Thread John W. Krahn
Peter Xu wrote: John W. Krahn wrote: perldoc -f sysread sysread FILEHANDLE,SCALAR,LENGTH,OFFSET sysread FILEHANDLE,SCALAR,LENGTH Attempts to read LENGTH bytes of data into variable SCALAR from the specified FILEHANDLE, using the system call read(2).

Re: Problem with sysread()

2009-08-22 Thread John W. Krahn
Peter Xu wrote: Hi, everyone, Hello, I've met some problem while practice my perl. It seems that in some condition, sysread() doesn't work? codes here: #!/usr/bin/perl -w use strict; $| = 1; open my $file, "<", "test.txt" or die; ## if these a