Tim Bowden wrote:
I'm trying to write a small cgi app that takes an uploaded zip file,
extracts the contents and does some operations on the included files.
Following is a cut down version of my attempts to understand how to
manipulate a zip file. It doesn't work (surprise, surprise!) It
creates an empty file with the correct name, but then dies. It also
won't work using #!/usr/bin/perl -wT, but I haven't tried to sort that
yet. Can anyone please point me in the right direction?
It may be easier to do it in two steps:
1. Upload and save the zip file to disk without Archive::Zip
2. Manipulate the file to your liking
As regards the first step, you may want to use the CPAN module
CGI::UploadEasy. It should work fine in tainted mode.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/