in reply to Re^4: Reading a .txt file under 2 levels of compression
in thread Reading a .txt file under 2 levels of compression

When I wrote unzip I wanted to allow flexibility on where it obtained it's input and where it sent its output. Currently the input and output paramers can be a filename, filehandle or in-memory.

So, for example

my $inner; unzip "my.zip" => \$inner; # remove all whitespace $inner =~ s/\s+//g; print $inner;
This will uncompress the contents of the file "my.zip" and write the uncompressed data into the variable $inner.

The code then makes use of the uncompressed data in this case to remove all whitespace, then print it.