Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Pull all text from msword document

by davidrw (Prior)
on Jul 22, 2005 at 16:52 UTC ( [id://477285]=note: print w/replies, xml ) Need Help??


in reply to Pull all text from msword document

a few random thoughts:
  • add use strict; and use warnings;
  • I assume the SaveAs() method has to take a filename and not a filehandle.. if it could take a filehandle IO::Scalar would help you out..
  • If you do the equivalent of a "select all", what data type/structure do you get? can you get plain text from that?
  • If you do a "select all" and "copy" to shove it into the clipboard, is it any easier to get the plain text from that? (this is probably not the ideal route)
  • Using a temp file isn't the worst thing in the world.. File::Temp will make it easier, too.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found