title: Reading zip file contents with Perl
body: <p>As part of a Perl script I am trying to read component from within a zip folder without uncompressing them.  After some research I started trying to use Archive::Zip::MemberRead and after creating a test.zip that contained a test folder with 2 text fields it seemed to work fine.  The issue I'm facing is the zip file I actually need to parse contents of just has all the .txt,.dat,.csv's in the zip with no sub-directory which seems to be causing issues.  test.zip contains about 30 different zipped files including node_info.txt and I've been using the below code which worked when there was a sub-directory in the zip folder.</p>
  
  <pre><code>my $zip = Archive::Zip-&gt;new("C:\\test.zip");
  my $fh  = Archive::Zip::MemberRead-&gt;new($zip,'node_info.txt');
  while (defined(my $line = $fh-&gt;getline()))
  {
      print $line . "\n";
  }
  </code></pre>
  
  <p>When I try to run it though it errors Can't call method "readChunk" on an undefined value at C:/Perl/lib/Archive/Zip/MemberRead.pm line 268.  Is there something different I need to do when passing the specific member to be read?</p>