setting up a file hierarchy

Tom Hukins tom at
Tue May 19 17:31:24 BST 2009

On Tue, May 19, 2009 at 04:02:19PM +0200, Jurgen Pletinckx wrote:
> A .docx file is just a zip container with a handful of XML
> documents (plus extra media, if applicable). For most of these, the
> default content is fine. But what is the optimal way of generating
> them?


> I set up the hierarchy in a folder, and package that up with
> Archive::Zip, as it makes interactions with the files easier. I could
> write directly into a zip file, but that doesn't really make a
> difference to the problem.

I think I'd use Template Toolkit's ttree to build the internal
structure, then package that with Archive::Zip as you suggest.

That seems cleaner to me than a script with lots of <<END in it
because the input file structure matches the output archive structure,
but then I'm easily confused.


More information about the mailing list