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).
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
Hi, everyone,
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 add these 2 lines, sysread