in reply to Unzip file to scalar, treat scalar as a file
Use the OO Interface, for example:
my $z = IO::Uncompress::Unzip->new($input, AutoClose=>1) or die "IO::Uncompress::Unzip failed: $UnzipError\n"; while (<$z>) { # ... } [download]