Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Archive::Extract 0.60

    Download button

    No screenshots available
    Downloads: 411  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jos Boumans | More programs
    Perl Artistic License / FREE
    September 22nd, 2012, 08:45 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Archive::Extract description

    A generic archive extracting mechanism

    Archive::Extract is a generic archive extraction mechanism module in Perl.

    It allows you to extract any archive file of the type .tar, .tar.gz, .gz, .Z, tar.bz2, .tbz, .bz2, .zip or .lzma without having to worry how it does so, or use different interfaces for each type by using either perl modules, or commandline tools on your system.

    SYNOPSIS

     use Archive::Extract;

     ### build an Archive::Extract object ###
     my $ae = Archive::Extract->new( archive => 'foo.tgz' );

     ### extract to cwd() ###
     my $ok = $ae->extract;

     ### extract to /tmp ###
     my $ok = $ae->extract( to => '/tmp' );

     ### what if something went wrong?
     my $ok = $ae->extract or die $ae->error;

     ### files from the archive ###
     my $files = $ae->files;

     ### dir that was extracted to ###
     my $outdir = $ae->extract_path;


     ### quick check methods ###
     $ae->is_tar # is it a .tar file?
     $ae->is_tgz # is it a .tar.gz or .tgz file?
     $ae->is_gz; # is it a .gz file?
     $ae->is_zip; # is it a .zip file?
     $ae->is_bz2; # is it a .bz2 file?
     $ae->is_tbz; # is it a .tar.bz2 or .tbz file?
     $ae->is_lzma; # is it a .lzma file?

     ### absolute path to the archive you provided ###
     $ae->archive;

     ### commandline tools, if found ###
     $ae->bin_tar # path to /bin/tar, if found
     $ae->bin_gzip # path to /bin/gzip, if found
     $ae->bin_unzip # path to /bin/unzip, if found
     $ae->bin_bunzip2 # path to /bin/bunzip2 if found
     $ae->bin_unlzma # path to /bin/unlzma if found



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    archive extraction | Perl module | archive | extraction | mechanism

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM