in reply to help with SEEK, TELL, READ, others
ormy $buf; $scalar .= $buf while read(FH, $buf, 4096);
As long as all processes honor your flock, there shouldn't be a race condition with the stat + read, but it still makes me uncomfortable.my $size = (stat FH)[7]; read(FH, $scalar, $size);
|
|---|