Alien-Win32-LZMA
view release on metacpan or search on metacpan
lib/Alien/Win32/LZMA.pm view on Meta::CPAN
=pod
=head2 lzma_decompress
lzma_decompress('file','file.lz') or die('Failed to decompress');
The C<lzma_decompress> function invokes F<lzma.exe> to decompress
an LZMA file into another file.
Any additional params to C<lzma_compress> will be passed through to
the underlying command line call as options.
Returns true if the invocation returns without error.
=cut
sub lzma_decompress {
my $from = shift;
my $to = shift;
my $cmd = lzma_exe();
unless ( -f $from ) {
Carp::croak("No such file or directory '$from'");
}
IPC::Run3::run3(
[ $cmd, 'd', $from, $to, @_ ],
\undef, \undef, \undef,
);
}
1;
=pod
=head1 SUPPORT
Bugs should be reported via the CPAN bug tracker at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Alien-Win32-LZMA>
For other issues, contact the author.
=head1 AUTHOR
Adam Kennedy E<lt>adamk@cpan.orgE<gt>
=head1 SEE ALSO
L<Compress::umLZMA>
=head1 COPYRIGHT
Copyright 2009 Adam Kennedy.
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the
LICENSE file included with this module.
The LZMA SDK is written and placed in the public domain by
Igor Pavlov.
=cut
( run in 0.602 second using v1.01-cache-2.11-cpan-140bd7fdf52 )