From the manual page of IO::Uncompress::Gunzip, I read:
Provides a sub-set of the "seek" functionality, with the restriction that it is only legal to seek forward in the input file/buffer. It is a fatal error to attempt to seek backward.$z->seek($position, $whence); seek($z, $position, $whence);
Returns the uncompressed file offset.$z->tell() tell $z
So yes, you can, but of course it can not be as easy as with an uncompressed file.
In reply to Re: Random accessing a gzip file
by grondilu
in thread Random accessing a gzip file
by anmol.itbhu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |