Archive::Any::Create(3pm) | User Contributed Perl Documentation | Archive::Any::Create(3pm) |
Archive::Any::Create - Abstract API to create archives (tar.gz and zip)
use Archive::Any::Create; my $archive = Archive::Any::Create->new; $archive->container('foo'); # top-level directory $archive->add_file('bar.txt', $data); # foo/bar.txt $archive->add_file('bar/baz.txt', $data); # foo/bar/baz.txt $archive->write_file('foo.tar.gz'); $archive->write_file('foo.zip'); $archive->write_filehandle(\*STDOUT, 'tar.gz');
Archive::Any::Create is a wrapper module to create tar/tar.gz/zip files with a single easy-to-use API.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Archive::Any, Archive::Tar, Archive::Zip
2022-06-08 | perl v5.34.0 |