Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: unzipping unix files on windows

by dakkar (Hermit)
on Jul 02, 2004 at 12:55 UTC ( [id://371383]=note: print w/replies, xml ) Need Help??


in reply to Re: unzipping unix files on windows
in thread unzipping unix files on windows

The UNIX compress program uses a quite different implementation of the compression techniques used by zlib and gzip, so I'm not sure whether Compress::Zlib will be able to read .Z files.

Anyway, keep in mind that there are several different compression methods, and that the one that people usually refer to as 'zip' refers to PKZip, which is compatible with WinZip and InfoZip.

gzip and PKZip/WinZip/InfoZip use very different compression methods (just to say one difference, gzip can compress only one file, while the others can create compressed archives of several files), so compression and decompression programs will have to be paired. For example, gzip on one end and Compress::Zlib on the other.

-- 
        dakkar - Mobilis in mobile

Most of my code is tested...

Perl is strongly typed, it just has very few types (Dan)

Replies are listed 'Best First'.
Re^3: unzipping unix files on windows
by tbone1 (Monsignor) on Jul 02, 2004 at 14:23 UTC
    Actually, I believe that gzip can uncompress .Z files but it cannot compress files into .Z format for licensing reasons or some such. So you may be good to go with that.

    --
    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

Re^3: unzipping unix files on windows
by iburrell (Chaplain) on Jul 02, 2004 at 16:22 UTC
    Actually, zip and gzip use the same compression algorithm, deflate. Deflate is a variant of LZ77, and is used in other file formats (PNG, PDF). The file formats are different, with gzip compressing a single file, and zip making an archive with multiple files.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://371383]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-18 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found