in reply to Re: Reading zipped files (.gz)
in thread Reading zipped files (.gz)

Note that your approach will read the complete (uncompressed) archive into memory, as per the Archive::Tar FAQ. There are Archive::Tar::Streamed and Archive::Tar::Wrapper which purport to work around this.