Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: unzipping files with .gz extension

by Anonymous Monk
on Dec 30, 2012 at 04:15 UTC ( #1010886=note: print w/ replies, xml ) Need Help??

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 line 1 Compilation failed in require at line 1. BEGIN failed--compilation aborted at line 1.

use PerlIO::gzip; open( IN, "<:gzip", test1.txt.gz ) or die "open failed\n"; while (<IN>) { print $_; }

Comment on Re^2: unzipping files with .gz extension
Download Code
Re^3: unzipping files with .gz extension
by roboticus (Canon) on Dec 30, 2012 at 18:18 UTC

    Pop on over to CPAN and install PerlIO::gzip, then.


    When your only tool is a hammer, all problems look like your thumb.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010886]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2015-03-26 23:55 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (597 votes), past polls