Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: reading a gzip'ed file

by synapse0 (Pilgrim)
on Jul 12, 2001 at 12:55 UTC ( [id://95958]=note: print w/replies, xml ) Need Help??


in reply to reading a gzip'ed file

well, providing all else fails, you can still backtick it... $file = `/bin/gunzip -c file.gz`; will send the output to STDOUT, which will be placed in $file for you to play with.
It's ugly, but it works.
-Syn0

word of caution: if you plan on using a variable for the filename and it comes from untrusted sources, make sure you have taint mode on and do proper checking on what is in the variable... backticks are evil evil little creatures.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found