Skip to content

Instantly share code, notes, and snippets.

@shibayu36
Created June 20, 2012 05:13
Show Gist options
  • Save shibayu36/2958244 to your computer and use it in GitHub Desktop.
Save shibayu36/2958244 to your computer and use it in GitHub Desktop.
Archive::Any::Liteを試した
#!perl
use strict;
use warnings;
use Archive::Any::Lite;
my $d = '/path/to/dir';
use Path::Class;
for my $file (dir($d)->children) {
next if $file->is_dir;
my $archive = Archive::Any::Lite->new($file->absolute);
$archive->extract("$d/extract");
for my $extracted ($archive->files) {
warn $extracted;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment