Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

PerlIO::gzip or PerlIO::via::gzip

by Dave Howorth (Scribe)
on Oct 18, 2010 at 11:17 UTC ( #865916=perlquestion: print w/replies, xml ) Need Help??
Dave Howorth has asked for the wisdom of the Perl Monks concerning the following question:

PerlIO::gzip or PerlIO::via::gzip, that is the question?

I have been using PerlIO::gzip and it's come time to install the application on a new machine. I see there is now also PerlIO::via::gzip and that PerlIO::gzip has outstanding bugs and is four years old. But I've failed to find any indication as to when or whether to use one rather than the other.

Can the monks please enlighten me?

It's Monday morning and I have a cold, so my foo is not strong today. Please forgive me if I've missed something obvious.

Replies are listed 'Best First'.
Re: PerlIO::gzip or PerlIO::via::gzip
by Khen1950fx (Canon) on Oct 18, 2010 at 15:49 UTC
      Thanks for pointing this out. I first learned about PerlIO::gzip years ago (early days of perl 5.8), and wasn't aware of PerlIO::via:gzip until now. (In general, I've used PerlIO::gzip as a convenience for reading compressed data -- not for writing -- and I've never seen any trouble, but given what the author said, it makes sense to switch.)

        I too have used PerlIO::gzip for a number of years on many millions of files without ever seeing any sign of problems and none of the reported bugs affect me. But nobody has yet said that they've even used PerlIO::via::gzip, so my practical experience kind of balances out the author's noble warning, leaving me still uncertain.

        Does anybody know any more of the story here?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://865916]
Approved by Corion
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2018-06-21 01:51 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.