GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ARCHIVE::ANY (3)

.ds Aq ’

NAME

Archive::Any - Single interface to deal with file archives.

CONTENTS

VERSION

version 0.0944

SYNOPSIS



    use Archive::Any;

    my $archive = Archive::Any->new( $archive_file );

    my @files = $archive->files;

    $archive->extract;

    my $type = $archive->type;

    $archive->is_impolite;
    $archive->is_naughty;



DESCRIPTION

This module is a single interface for manipulating different archive formats. Tarballs, zip files, etc.
<B>newB>


    my $archive = Archive::Any->new( $archive_file );
    my $archive = Archive::Any->new( $archive_file, $type );



$type is optional. It lets you force the file type in case Archive::Any can’t figure it out.

<B>extractB>


    $archive->extract;
    $archive->extract( $directory );



Extracts the files in the archive to the given $directory. If no $directory is given, it will go into the current working directory.

<B>filesB>


    my @file = $archive->files;



A list of files in the archive.

<B>mime_typeB>


    my $mime_type = $archive->mime_type();



Returns the mime type of the archive.

<B>is_impoliteB>


    my $is_impolite = $archive->is_impolite;



Checks to see if this archive is going to unpack into the current directory rather than create its own.

<B>is_naughtyB>


    my $is_naughty = $archive->is_naughty;



Checks to see if this archive is going to unpack <B>outsideB> the current directory.

DEPRECATED

<B>typeB>


    my $type = $archive->type;



Returns the type of archive. This method is provided for backwards compatibility in the Tar and Zip plugins and will be going away <B>soonB> in favor of mime_type.

PLUGINS

For detailed information on writing plugins to work with Archive::Any, please see the pod documentation for Archive::Any::Plugin.

SEE ALSO

Archive::Any::Plugin

SUPPORT

You can find documentation for this module with the perldoc command.



    perldoc Archive::Any



You can also look for information at:
o MetaCPAN

<https://metacpan.org/module/Archive::Any>

o Issue tracker

<https://github.com/oalders/archive-any/issues>

AUTHORS

o Clint Moore
o Michael G Schwern (author emeritus)
o Olaf Alders (current maintainer)

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Olaf Alders.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ARCHIVE::ANY (3) 2016-04-01

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.