Thread welcher Weg um gzip-Dateien zu lesen ...
(9 answers)
Opened by tecker at 2008-02-26 17:51
Ich finde PerlIO::gzip echt Klasse.
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #!/usr/bin/perl # Core Module use strict; use warnings; use utf8; use open ':utf8'; use open ':std'; use Fatal qw(open close); use English '-no-match-vars'; # CPAN Module #use Smart::Comments; use PerlIO::gzip; my $filename = 'textfile.txt.gz'; eval { open my $file, '<:gzip', $filename; while ( my $line = <$file> ) { print $line; } close $file; }; die $EVAL_ERROR if $EVAL_ERROR; Nicht mehr aktiv. Bei Kontakt: ICQ: 404181669 E-Mail: perl@david-raab.de
|