4 Compress::Raw::Zlib::FAQ -- Frequently Asked Questions about Compress::Raw::Zlib
8 Common questions answered.
10 =head2 Compatibility with Unix compress/uncompress.
12 This module is not compatible with Unix C<compress>.
14 If you have the C<uncompress> program available, you can use this to read
17 open F, "uncompress -c $filename |";
22 Alternatively, if you have the C<gunzip> program available, you can use
23 this to read compressed files
25 open F, "gunzip -c $filename |";
30 and this to write compress files, if you have the C<compress> program
33 open F, "| compress -c $filename ";
38 =head2 Accessing .tar.Z files
40 See previous FAQ item.
42 If the C<Archive::Tar> module is installed and either the C<uncompress> or
43 C<gunzip> programs are available, you can use one of these workarounds to
46 Firstly with C<uncompress>
52 open F, "uncompress -c $filename |";
53 my $tar = Archive::Tar->new(*F);
56 and this with C<gunzip>
62 open F, "gunzip -c $filename |";
63 my $tar = Archive::Tar->new(*F);
66 Similarly, if the C<compress> program is available, you can use this to
67 write a C<.tar.Z> file
74 my $fh = new IO::File "| compress -c >$filename";
75 my $tar = Archive::Tar->new();
80 =head2 Accessing Zip Files
82 This module does not support reading/writing zip files.
84 Support for reading/writing zip files is included with the
85 C<IO::Compress::Zip> and C<IO::Uncompress::Unzip> modules.
87 The primary focus of the C<IO::Compress::Zip> and C<IO::Uncompress::Unzip>
88 modules is to provide an C<IO::File> compatible streaming read/write
89 interface to zip files/buffers. They are not fully flegged archivers. If
90 you are looking for an archiver check out the C<Archive::Zip> module. You
91 can find it on CPAN at
93 http://www.cpan.org/modules/by-module/Archive/Archive-Zip-*.tar.gz
95 =head2 Zlib Library Version Support
97 By default C<Compress::Raw::Zlib> will build with a private copy of version
98 1.2.3 of the zlib library. (See the F<README> file for details of
99 how to override this behaviour)
101 If you decide to use a different version of the zlib library, you need to be
102 aware of the following issues
108 First off, you must have zlib 1.0.5 or better.
112 You need to have zlib 1.2.1 or better if you want to use the C<-Merge>
113 option with C<IO::Compress::Gzip>, C<IO::Compress::Deflate> and
114 C<IO::Compress::RawDeflate>.
120 L<Compress::Zlib>, L<IO::Compress::Gzip>, L<IO::Uncompress::Gunzip>, L<IO::Compress::Deflate>, L<IO::Uncompress::Inflate>, L<IO::Compress::RawDeflate>, L<IO::Uncompress::RawInflate>, L<IO::Compress::Bzip2>, L<IO::Uncompress::Bunzip2>, L<IO::Compress::Lzop>, L<IO::Uncompress::UnLzop>, L<IO::Compress::Lzf>, L<IO::Uncompress::UnLzf>, L<IO::Uncompress::AnyInflate>, L<IO::Uncompress::AnyUncompress>
122 L<Compress::Zlib::FAQ|Compress::Zlib::FAQ>
124 L<File::GlobMapper|File::GlobMapper>, L<Archive::Zip|Archive::Zip>,
125 L<Archive::Tar|Archive::Tar>,
130 This module was written by Paul Marquess, F<pmqs@cpan.org>.
132 =head1 MODIFICATION HISTORY
134 See the Changes file.
136 =head1 COPYRIGHT AND LICENSE
138 Copyright (c) 2005-2009 Paul Marquess. All rights reserved.
140 This program is free software; you can redistribute it and/or
141 modify it under the same terms as Perl itself.