Subject: | unnecessary output from rar command on extraction |
Date: | Fri, 11 Jun 2010 18:27:11 +0400 |
To: | bug-Archive-Any-Plugin-Rar [...] rt.cpan.org |
From: | Dima <d_ion [...] mail.ru> |
Hi! I've noted that extraction of files goes somewhat noisy - with
output directly from rar command getting through.
Both Zip and Tar modules keep silence on extraction though.
So, this little "fix" here should tone it down.
sub extract {
my ( $self, $file ) = @_;
- my $t = Archive::Rar->new( -archive => $file );
+ my $t = Archive::Rar->new( -archive => $file,
+ -quiet => 'True' );
return $t->Extract;
}