Subject: | consider using the offset parameter for syswrite |
In the serve_fh routine, consider using the offset parameter to syswrite
instead of substr to avoid copying $wbuf:
for (my $ofs = 0; $ofs < length $wbuf; ) {
# $ofs += (my $wr = syswrite $fh, substr $wbuf, $ofs or die "unable to
write results");
$ofs += (my $wr = syswrite $fh, $wbuf, length($wbuf), $ofs or die
"...");
}