debian man page for archive::any::plugin

Query: archive::any::plugin

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Archive::Any::Plugin(3pm)				User Contributed Perl Documentation				 Archive::Any::Plugin(3pm)

NAME
Archive::Any::Plugin - Anatomy of an Archive::Any plugin.
SYNOPSIS
Explains what is required for a working plugin to Archive::Any.
PLUGINS
Archive::Any requires that your plugin define three methods, all of which are passed the absolute filename of the file. This module uses the source of Archive::Any::Plugin::Tar as an example. Subclass Archive::Any::Plugin use base 'Archive::Any::Plugin'; can_handle This returns an array of mime types that the plugin can handle. sub can_handle { return( 'application/x-tar', 'application/x-gtar', 'application/x-gzip', ); } files Return a list of items inside the archive. sub files { my( $self, $file ) = @_; my $t = Archive::Tar->new( $file ); return $t->list_files; } extract This method should extract the contents of $file to the current directory. Archive::Any::Plugin handles negotiating directories for you. sub extract { my ( $self, $file ) = @_; my $t = Archive::Tar->new( $file ); return $t->extract; }
AUTHOR
Clint Moore <cmoore@cpan.org>
SEE ALSO
Archive::Any perl v5.10.0 2008-06-25 Archive::Any::Plugin(3pm)
Related Man Pages
archive::tar::file(3pm) - mojave
cpanplus::internals::extract(3pm) - mojave
cpanplus::internals::extract(3pm) - suse
cpanplus::internals::extract(3) - centos
tap::harness::archive(3pm) - debian
Similar Topics in the Unix Linux Community
Detecting unused variables...
One instance of comparing grep and awk
Weird 'find' results
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?