Looking for the Paragraph subroutine
Posted by enquirer (enquirer), 8 March 2003I came to your side and tried that perl script:
Using Perl to read Microsoft Word documents
Unfortunately this program calls a subroutine aragraphs()
You don't have accidently that sourcecode ??
Posted by admin (Graham Ellis), 8 March 2003I think you're asking about the script that's at:
It's a script that reads a Microsoft Word document and saves each
piece of text (and its paragraph tag) to a plain text file ....
The Paragraph subroutine is provided via the Win32:LE or the
WIn32:LE::Enum modules which are loaded at the top of the Perl
script. These modules are provided in the ActiveState version of
Perl, and they use Microsoft Word's .dll files to actually process the
So ... to answer your question ...
"The paragraph subroutine is provided by the Perl module working in
association with Microsoft Word. This Perl script will only work on a machine
with that module and with Word." I'm afraid that if you have been given a
Word document and want to get the text out from it on (say) a Linux box that
doesn't have any of Mr Gate's software on it, this isn't the script for you!
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho