seek
read
open $fh,'<',$filename; seek $fh,$startByte,0; $numRead = read $fh,$buffer,$endByte - $startByte; # + 1 &do_something_with($buffer);