in reply to Re^2: Archive::Zip - zip files are corrupted or invalid
in thread Archive::Zip - zip files are corrupted or invalid

$zip->writeToFileNamed( $fh )

is likely wrong, at least when looking at Archive::Zip. You either want

$zip->writeToFileHandle( $fh )

or

$zip->writeToFileNamed( $fullpath )

Are you sure that you are looking at the correct file(s)? You also open $fh to append to $fullpath, which also strikes me as odd.

Replies are listed 'Best First'.
Re^4: Archive::Zip - zip files are corrupted or invalid
by tomdbs98 (Beadle) on Jul 12, 2011 at 16:36 UTC
    oops! you're right, I should have been using:
    $zip->writeToFileHandle( $fh )
    I didn't see the distinction when looking through the docs.

    Also, I didn't catch that I was appending the the zip file because the filename is always supposed to be unique, but I will make that change as well.

    Thanks for your time, Tom