in reply to Archive::Zip can only create zip-files in-memory, right? SOLVED

From the Overview section of the documentation:

Archive::Zip::Archive objects are what you ordinarily deal with. These maintain the structure of a zip file, without necessarily holding data. When a zip is read from a disk file, the (possibly compressed) data still lives in the file, not in memory. Archive members hold information about the individual members, but not (usually) the actual member data. When the zip is written to a (different) file, the member data is compressed or copied as needed. It is possible to make archive members whose data is held in a string in memory, but this is not done when a zip file is read. Directory members don't have any data.

which implies to me that the .zip is not built in memory as items are added so no problem eh?

Perl is the programming world's equivalent of English
  • Comment on Re: Archive::Zip can only create zip-files in-memory, right?

Replies are listed 'Best First'.
Re^2: Archive::Zip can only create zip-files in-memory, right?
by isync (Hermit) on Jul 26, 2014 at 12:19 UTC
    Right, but that applies to having a source zip to start from, changes/appended zip members then reside in memory, until you write back out to a file. Building a file from scratch means all members remain in memory until flushing to file.