Hi , i'm new to perl and its been couple of days since i ve stepped into this world of PERL. I'm actually trying to write a script which can open a MS word document, search for the particular pattern ,say a particular command "chown and chmod" and note the following details.
1) Number of occurences of a pattern , full line of string containing the pattern into a different file.
2) Also , copy down the previous two lines and succeeding two lines after the occurencde of pattern.
I see, WIN32::OLE is the way to do this. But i am unable to find any resource which could explain WIN32::OLE in terms of WORD and how we can manipulate the read data. say by printing it another doc or printing it to STDOUT.
Though there are are couple of notes about WIN32 OLE , they are mainly with respect to Excel and also not so descriptive for a beginner.
It would be helpful if someone can point me in right direction or give a code with description , it would be really helpful.