... my $uncompressed = memBunzip( $compressed ); open my $ramFH, '<', \$uncompressed; my $tar = Archive::Tar->new; my @ATFobjects = $tar->read( $ramFH, 0, { extract => 1 } ); for my $ATFobject ( @ATFObjects ) { my $content = $ATFObject->getContent; ## Do something with the content. }