jackofspades has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks, I'd like to know if any of you know a means in which I can import text from a .doc file using Perl. I found a way, but it requires a *ick* windows system. I would like to know if there is a Linux friendly way. Thank you.

Replies are listed 'Best First'.
Re: Import from a .doc file
by Joost (Canon) on Feb 15, 2008 at 23:57 UTC
Re: Import from a .doc file
by hipowls (Curate) on Feb 16, 2008 at 01:27 UTC
Re: Import from a .doc file
by ww (Archbishop) on Feb 16, 2008 at 01:27 UTC

    A cursory scan of CPAN didn't turn up a module for your specific purpose, tho I suspect that the problem is my search rather than the lack of such a module.

    Nonetheless the solution is going to depend on your needs, where the .doc is when you start the process, and which version of MS Word (latest uses XML with proprietary additions).

    A non-script way might be to use Open Office (swrite) to open the .doc on the Linux box, either after using a script to copy it there or after any other kind of transfer mechanism (FTP, sneaker net, SAMBA....).

    More information on just what you're seeking would help.

Re: Import from a .doc file
by redhotpenguin (Deacon) on Feb 16, 2008 at 09:09 UTC
    antiword is a decent free .doc reader. I'm sure you can call it from a perl program.