Created
June 20, 2012 05:13
-
-
Save shibayu36/2958244 to your computer and use it in GitHub Desktop.
Archive::Any::Liteを試した
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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