Should be as simple as:
my $sizeRead = $chunkSize; while ($sizeRead == $chunkSize) { $sizeRead = read $in_fh, $buffer, $size; die "Error reading: $!\n" unless defined $sizeRead; ... }
In reply to Re^3: Chunking very large files
by SuicideJunkie
in thread Chunking very large files
by hiptoss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |