in reply to Re: unzipping files with .gz extension
in thread unzipping files with .gz extension
Hi, I need perl script itself.My code is throwing an error like this Can't locate loadable object for module PerlIO::gzip in @INC (@INC contains: C:/ Perl/site/lib C:/Perl/lib .) at unzip2.pl line 1 Compilation failed in require at unzip2.pl line 1. BEGIN failed--compilation aborted at unzip2.pl line 1.
use PerlIO::gzip; open( IN, "<:gzip", test1.txt.gz ) or die "open failed\n"; while (<IN>) { print $_; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: unzipping files with .gz extension
by roboticus (Chancellor) on Dec 30, 2012 at 18:18 UTC |
In Section
Seekers of Perl Wisdom