Acme::Archive::Mbox - Mbox as an archive format.
Version 0.01
Uses Mbox as an archive format, like tar or zip but silly. Creates an mbox with one message per file or directory. File contents are stored as an attachment, metadata goes in mail headers.
use Acme::Archive::Mbox; my $archive = Acme::Archive::Mbox->new(); $archive->add_file('filename'); $archive->add_data('file/name', $contents); $archive->write('foo.mbox'); ... $archive->read('foo.mbox'); $archive->extract();
Create an Acme::Archive::Mbox object.
Add a file given a filename and contents. (File need not exist on disk)
Add a file given a filename. File will be read from disk, leading slashes will be stripped. Will accept an optional alternative filename to be used in the archive.
Returns a list of AAM::File objects.
Write archive to a file
Read archive from a file.
Ian Kilgore, <iank at cpan.org>
<iank at cpan.org>
You can find documentation for this module with the perldoc command.
perldoc Acme::Archive::Mbox
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-Archive-Mbox
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Acme-Archive-Mbox
CPAN Ratings
http://cpanratings.perl.org/d/Acme-Archive-Mbox
Search CPAN
http://search.cpan.org/dist/Acme-Archive-Mbox/
Copyright 2008 Ian Kilgore, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::Archive::Mbox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Archive::Mbox
CPAN shell
perl -MCPAN -e shell install Acme::Archive::Mbox
For more information on module installation, please visit the detailed CPAN module installation guide.