Does anyone know where I can get a script (either Perl or PHP) that will parse .doc or .rtf files? I’ve tried using RTF::Parser and RTF::TEXT::Converter, but they just return a bunch of blank lines. Win32::OLE would work nicely, but it relies on the underlying win32 architecture to run, i.e. it needs to run on a Windows box.

Basically a client has a site that we maintain, and the content that changes regularly is provided in a standard Word document, which would make it very simple to automate the updates if I could just figure out how to parse the document.