Archive::Extract allows you to extract any archive file of the type .tar, .tar.gz, .gz, .Z, tar.bz2, .tbz, .bz2, .zip, .xz, .txz, .tar.xz or .lzma without having to worry how it does so, or use different interfaces for each type by using either Perl modules, or command-line tools on your system. perl-Archive-Zip is an optional dependency.