Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: unzipping files with .gz extension

by ansh batra (Friar)
on Dec 29, 2012 at 17:53 UTC ( #1010834=note: print w/replies, xml ) Need Help??


in reply to unzipping files with .gz extension

do you need a perl script for that?
if yes
then please try it urself ,you'll feel good trying it urself
try this and this

Replies are listed 'Best First'.
Re^2: unzipping files with .gz extension
by Anonymous Monk on Dec 30, 2012 at 04:15 UTC

    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 $_; }

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

      ...roboticus

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010834]
help
Chatterbox?
[TCLion]: DateTime::Format:: Flexible seems to have a lot of dependents, taking a while to install

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (16)
As of 2017-03-23 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (289 votes). Check out past polls.