in reply to Error opening ms word document

You made a typo :)

Instead of 'C:\\Document and Settings' you should write 'C:\\Documents and Settings' ('s' missing)

Additionally I got error 'Use of uninitialized value $_ in print at ...', you will have to change print to something like print FH $&

Replies are listed 'Best First'.
Re^2: Error opening ms word document
by mhd (Novice) on Apr 01, 2009 at 09:30 UTC
    Thanks for pointing the typo,grizzly. But now the script seems running but the result file is empty O_o
    I tried with print FH $& ; or print FH $_ ; even print FH "\nzzzz"; Still empty file is all I got. What's wrong?
      You have if(...) Maybe this is always false in your case?