in reply to docx and Perl

If openoffice can do it, you can theoretically use OpenOffice::OODoc for conversion.