in reply to Re^4: Working with word document
in thread Working with word document

Hi,

see this: open my $fh2,'>>','file2.doc' or die "can't open file:";
With the double arrow ">>" the file file2.doc is created if it doesn't exist, but if it does, it "appends" to the file.
Thus, the increase in the size of the file. So, to just add to the file you will use do like so:
open my $fh2,'>','file2.doc' or die "can't open file:";
Please check open for more detailed information.

Replies are listed 'Best First'.
Re^6: Working with word document
by clueless newbie (Curate) on Aug 28, 2012 at 12:09 UTC

    I'm guessing he's trying to modify a MS Word document.