Did you try to google, to see what fits your needs
"html to word" perl?
IMHO there is no trivial answer to such a general question!
Word-doc is effectively a print format like PDF, HTML is a multi device format, that means you have to decide what the print-version has to look like, where the page breaks are, font-sizes ... and so on.
Furthermore word-doc is (was???) a closed proprietary format, converting to RTF is much easier and better supported.
If you just want the default formating MS-Word produces you should simply use it's API and script the load and save-as.
UPDATE: IIRC word-doc can embed HTML-Objects. And I wouldn't be surprised if the IE has a feature to export word-doc, so maybe another approach to script it...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.