I've got code that reads and processes the contents of gzip files. It needs to run on both AS Perl 5.10 and AS Perl 5.8. When I originally wrote it and 5.8 was the latest Perl, I used PerlIO::gzip obtained from ppm and life was good. Now that I have to support both 5.10 and 5.8 I thought I'd just ppm install PerlIO::gzip for 5.10, but no such luck. It's not there on the PPM repos I kinow about. My attempts to download and build it with CPAN using all the normal mechanisms that work for other modules don't work for this module. My suspicion is that it's a c-lib and/or c-header issues; like I don't have the right gzip lib/header version installed on my workstation.
So all that leads to this question - has anyone ever compiled PerlIO::gzip for perl 5.10 for Windows versions of perl? If so, what was the magic incantation you used to achieve success?
Now, in attempt to keep the responses on topic, let me address some tangents that might come to a fellow monk's mind: Yes, I can use PerlIO::via::gzip, but 1. it won't work under Perl 5.8, so I have to complicate my code and keep two different gzip handling modules around, 2. PerlIO::via::gzip has a number of dependencies whereas PerlIO::gzip does not, and 3(ish). I suspect, but could be wrong, that since it's a via module PerlIO::via::gzip will run slower than PerlIO::gzip. None of these are showstoppers, but I'd prefer to keep this system as simple and fast as possible.
Thanks !
--DrWhy
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
In reply to How do you compile PerlIO::gzip for AS Perl 5.10? by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |