jobs_ron has asked for the wisdom of the Perl Monks concerning the following question:
Like I said, it's not much. Now, I know how to extract the contents of the entire file using this line --use warnings; use strict; use OLE; my $word = CreateObject OLE "Word.Application"; $word -> {Visible} = 1; my $document = $word -> Documents -> Open("C:/file_to_open.doc");
-- But this doesn't do me much good. I instead want only the fourth line of the document. Can anyone help me? Thank you in advance.my $text = $document -> {Content} -> {Text};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract Single Line of Text from Word Document Using OLE
by jdporter (Paladin) on Jun 22, 2005 at 19:08 UTC |