rzs96 has asked for the wisdom of the Perl Monks concerning the following question:

Hi guys, I would love to know if there is a module or way that Perl can unzip a variety of zip files. Obviously the back ticks or system () can take care of UNIX zipped files such as TAR and GZIP/GUNZIP. However, if I am receiving:

1. A bunch of files zipped up on a PC using something like WinZip or
2. A bunch of files zipped up on a Mac using a Mac compression utility

Then I dont know how to unzip those file using Perl. Thanks for your help!
Robert

  • Comment on Is there a way for Perl to handle zipped files of various zip types.

Replies are listed 'Best First'.
Re: Is there a way for Perl to handle zipped files of various zip types.
by davido (Cardinal) on Jun 01, 2005 at 15:24 UTC

    There is also Archive::Any, which handles both zips and tarballs.


    Dave

Re: Is there a way for Perl to handle zipped files of various zip types.
by marto (Cardinal) on Jun 01, 2005 at 15:21 UTC
    Hi,

    You may want to check out Archive::Zip.
    Hope this helps.
    Cheers

    Martin
Re: Is there a way for Perl to handle zipped files of various zip types.
by marnanel (Beadle) on Jun 01, 2005 at 15:22 UTC
    The Archive::Zip module is your friend for opening the files that WinZip creates. What Mac compression utility are you thinking of-- StuffIt?
Re: Is there a way for Perl to handle zipped files of various zip types.
by Anonymous Monk on Jun 02, 2005 at 07:37 UTC
    Zip is one compression format. Zipped files are encoded in/compressed with zip format.