# Archive-Lha

[![CPAN](https://img.shields.io/cpan/v/Archive-Lha)](https://metacpan.org/dist/Archive-Lha)
[![Kwalitee](https://cpants.cpanauthors.org/dist/Archive-Lha.svg)](https://cpants.cpanauthors.org/dist/Archive-Lha)
[![CPAN Testers](https://img.shields.io/badge/CPAN%20Testers-matrix-blue)](https://matrix.cpantesters.org/?dist=Archive-Lha)

Read and extract .LZH/.LHA archives (Amiga, MS-DOS, Japanese).

Supports header levels 0, 1 and 2, and decompression methods lh0
(stored), lh5, lh6 and lh7. XS/C decompression based on LHa for UNIX.

Includes two command-line tools: plha (LhA-compatible) and plhasa
(lhasa-compatible).

## Installation

    perl Makefile.PL
    make
    make test
    make install

## Dependencies

    Encode
    Exporter::Lite
    File::Basename, File::Path
    Getopt::Long
    POSIX
    Time::Moment

## Command-line tools

    plha v archive.lha       # list (LhA verbose format)
    plha l archive.lha       # list (terse format)
    plha x archive.lha       # extract
    plha t archive.lha       # test integrity

    plhasa -v archive.lha    # lhasa-compatible listing

## Copyright and license

Copyright (C) 2007 Kenichi Ishigaki
Copyright (C) 2025-2026 Nicolas Mendoza

This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
