The stupid question is the question not asked | |
PerlMonks |
Re: Excel to Docby TJPride (Pilgrim) |
on Mar 04, 2012 at 16:41 UTC ( [id://957785]=note: print w/replies, xml ) | Need Help?? |
Docs are generally messy to work with. Is the only data inside the docs what you pasted?
There are modules for reading docs and writing docs, but without some messy manipulation, I'm guessing the two aren't necessarily going to translate to each other without some messy code. The easiest solution would be to read the docs, convert the text, and then write out as something simpler, like plaintext or HTML or at worst, rtf. Short of that, you might consider batch converting the docs to text or rtf from MS Word itself, then batch converting them back once you're done running your script. Nothing knows how to convert docs better than MS Word, why reinvent the wheel? The Excel sheet is relatively simple, you can convert to CSV and then use something basic like Text::CSV to read and write it.
In Section
Seekers of Perl Wisdom
|
|