in reply to Re: Checking if a file is present in a ZIP archive
in thread Checking if a file is present in a ZIP archive
Yes, I did try trapping the error with eval but it didn't work - it still spews a bunch of errors. I haven't used eval before, so maybe I've messed something up; I'll try again.
But if the designers have decided that the archive-processing functions should be passed only valid ZIP files, then they should have also provided a function that lets the user test if a file is a valid ZIP file. For instance, the Archive::Extract package does have such a function, but I can't use that package for various reasons (it doesn't have a function for testing the presence of a file with a specified name in the archive and it requires the presence of an unarchiving program).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Checking if a file is present in a ZIP archive
by Gulliver (Monk) on Mar 25, 2011 at 21:38 UTC | |
by Anonymous Monk on Mar 25, 2011 at 23:46 UTC | |
|
Re^3: Checking if a file is present in a ZIP archive
by toolic (Bishop) on Mar 26, 2011 at 00:41 UTC | |
by AATG_PERL_1010 (Initiate) on Oct 25, 2011 at 09:42 UTC | |
by choroba (Cardinal) on Oct 25, 2011 at 10:05 UTC |