Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Working with word document

by aaron_baugher (Curate)
on Aug 27, 2012 at 22:14 UTC ( #990070=note: print w/ replies, xml ) Need Help??

in reply to Working with word document

I don't know a lot about the DOC format, but I'm pretty sure it's a binary format. It's probably not a good idea to insert extra newlines into it, as you're doing here. Just read and print the lines, without changing anything, if that's your goal. (Of course, if that's your goal, why not just use the filesystem copy command?)

Also, you're appending to the output file. If it doesn't exist, it'll be created, and that'll be fine. But if it does exist, and you're really appending to it, the DOC format may not appreciate that either.

Aaron B.
Available for small or large Perl jobs; see my home node.

Comment on Re: Working with word document

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2015-11-26 08:55 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls