Think about Loose Coupling | |
PerlMonks |
Re: WIN32::OLE MS WORD TABLE CELL READING PERLby wfsp (Abbot) |
on Jan 25, 2011 at 07:07 UTC ( [id://884068]=note: print w/replies, xml ) | Need Help?? |
You tell us your script "does not output what I want" but don't tell us what that output was. It might have been helpful.
I would establish that it is in fact Win32::OLE that is locking up your laptop and one way to do that is write your script without it. :-) Put your script to one side for a moment and write a short script that demonstrates that you can find the files you want to work with. You refer to a sample_folder at the top of the script (with a path relative to your script - where is your script?) and in the loop you look in parent_folder (with a full path - a better way to go). Is that correct? If it is you would need more error checking. Perhaps something like the following would help you see what the script is actually doing (adding print statements) and then adjust if necessary. When you're sure you can see the files you need then perhaps another short script using Win32::OLE to open one of the files and get at the table cells. Get both working nicely and then put them together.
In Section
Seekers of Perl Wisdom
|
|