in reply to Byte ranges of binary files
(1) For portability, remember to put the file into binmode immediately after opening it.
(2) Also, do you have an off-by-1 error?
Should
(2) Also, do you have an off-by-1 error?
Should
actually bemy $myRange = $rangeEnd - $rangeStart;
?my $myRange = $rangeEnd - $rangeStart + 1; ^^^
In Section
Seekers of Perl Wisdom