in reply to Question: parse info in a Zipped XML document attached in an email

You can use Archive::Zip's member manipulation to obtain a list of files:

use strict; use warnings; use Archive::Zip; my $zippath = 'wibble.zip'; my $zip = Archive::Zip->new (); $zip->read ($zippath); my @members = $zip->members(); print $_->fileName(), "\n" for @members;

Perl reduces RSI - it saves typing
  • Comment on Re: Question: parse info in a Zipped XML document attached in an email
  • Download Code