rkg has asked for the wisdom of the Perl Monks concerning the following question:
use strict; $|++; use IO::Zlib; use Data::Dumper; my $fname = 'xxxxx-access_log.7.gz'; my $fhin = IO::Zlib->new($fname, 'rB') or die $!; die "bad file handle" unless $fhin->can('getline'); while (defined(my $line = $fhin->getline())) { print "$line\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WinXP & IO::Zlib: binmode issues? or...?
by PodMaster (Abbot) on Aug 25, 2003 at 17:31 UTC |