Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Uncompressing winzip downloaded in memoryby Athanasius (Archbishop) |
on Feb 04, 2015 at 04:09 UTC ( [id://1115475]=note: print w/replies, xml ) | Need Help?? |
Hello ganeshPerlStarter, The IO::Uncompress::Unzip::unzip function also accepts a reference to a string for the input:
I created a text file named “data.txt” and zipped it to “data.zip” using 7-Zip. The above script reads the zipped file data into the scalar $input, then correctly unzips it when passed a reference to the scalar (string) — \$input — as the input parameter. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|