| Acme-Archive-Mbox documentation | Contained in the Acme-Archive-Mbox distribution. |
Acme::Archive::Mbox::File - Archive::Mbox file
Version 0.01
No user-servicable parts inside.
use Acme::Archive::Mbox::File;
my $file = Acme::Archive::Mbox->new(name => 'file/name', contents => $contents, ...);
Create an Acme::Archive::Mbox::File object.
Returns the name of the file.
Returns the contents of the file.
Returns the mode of the file.
Returns the owner's uid.
Returns the gid of the group which owns the file.
Returns the mtime of the file as a unix timestamp.
Ian Kilgore, <iank at cpan.org>
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.
| Acme-Archive-Mbox documentation | Contained in the Acme-Archive-Mbox distribution. |
package Acme::Archive::Mbox::File; use warnings; use strict;
our $VERSION = '0.01';
sub new { my $class = shift; my $name = shift; my $contents = shift; my %attr = @_; my $self = { name => $name, contents => $contents, %attr }; return unless ($self->{name} and $self->{contents}); return bless $self, $class; }
sub name { my $self = shift; return $self->{name}; }
sub contents { my $self = shift; return $self->{contents}; }
sub mode { my $self = shift; return $self->{mode}; }
sub uid { my $self = shift; return $self->{uid}; }
sub gid { my $self = shift; return $self->{gid}; }
sub mtime { my $self = shift; return $self->{mtime}; }
1; # End of Acme::Archive::Mbox