Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Without Unzipping and without using Archive module Can we read the file in zip file

by Miguel (Friar)
on Mar 01, 2018 at 14:05 UTC ( [id://1210134]=note: print w/replies, xml ) Need Help??


in reply to Without Unzipping and without using Archive module Can we read the file in zip file

Is there any way to read contents inside the zip file without unzipping and without Zip.pm installed ?
Another way (edit: to read one file inside a zip file):
#!/usr/bin/env perl use strict; use warnings; use utf8; my $zip_file = q|test.zip|; my $cmd = q|/usr/bin/zless|; my $content = qx|$cmd $zip_file|; print $content;
  • Comment on Re: Without Unzipping and without using Archive module Can we read the file in zip file
  • Download Code

Replies are listed 'Best First'.
Re^2: Without Unzipping and without using Archive module Can we read the file in zip file
by Sekhar Reddy (Acolyte) on Mar 01, 2018 at 14:18 UTC
    Thank you Miguel, I have used your code snippet, Its working. Thank you so much

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found