lihao has asked for the wisdom of the Perl Monks concerning the following question:
The raw ZIP file(contains only one XML source file) is an attachment in an email which I can use Mail::POP3Client and MIME::Base64 to parse into a Perl string $zipdata. From here, I need to uncompress the attached $zipdata into XML flow, and use XML::Simple to parse the information I need. My questions are:
I know I can save $zipdata into a ZIP file and use Linux unzip to uncompress it and check the filename of XML document and then go back to Perl to parse the XML document. But how to handle all of these under Perl. Any suggestions?
Many thanks
lihao
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question: parse info in a Zipped XML document attached in an email
by GrandFather (Saint) on Nov 19, 2008 at 22:46 UTC | |
|
Re: Question: parse info in a Zipped XML document attached in an email
by ig (Vicar) on Nov 20, 2008 at 19:49 UTC | |
by lihao (Monk) on Nov 20, 2008 at 20:49 UTC |