Training, Open Source
computer languages


PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Looking for the Paragraph subroutine

Posted by enquirer (enquirer), 8 March 2003
I 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 2003
I think you're asking about the script that's at:
           http://www.wellho.net/solutions/1480965085.html

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
word document.

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!



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.


WELL HOUSE CONSULTANTS LTD.: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho