when I am trying to extract tar.gz file, I found that some of extraction show checksum error, invalid header block at offset unknown, Couldn't read chunk at offset unknown. And the extraction is failed. Only certain tarball having this issue while others has no problem. I believe there is something wrong in the tarball? But I could not sure.
use strict;
use warnings;
use Archive::Tar;
$tar->read("x.tar.gz");
$tar->extract();