There are some ways to use Win32:OLE and other techniques to generate a fancy MS .doc file. But from the above, you say that this is just plain old text. To me that means no fancy formatting, font selections, etc.
If you really just have "plain old text", then just make file: plain_old_text.doc with some plain old text in it. I just renamed one of my .pl programs to .doc as a test case. When WinWord opens plain_old_text.doc, it will say that it is plain text and user just has to click "yes" to read it (does a conversion). default fonts wind up on my machine as Courier New, 10 pt. So if it is indeed just text, Winword will read that "sort of .doc file" and convert it to a "real" .doc file just like as an analogy, Excel can import CSV files.
The WinWord.doc format is complex and I don't think that there are any options for a "real" .doc file that can be read by multiple years of WinWord other than using a version WinWord to make it (WinWord can be controlled by Perl but I've never actually done it myself).
Update: I did get a transient cannot open mswrd632.wpc error when I did the above experiment, but WinWord 2000 asked for my CD and became happier after that. Anyway my .pl file renamed to a .doc file did open in WinWord 2000.
In reply to Re: Help generating MS Word .doc file from perl
by Marshall
in thread Help generating MS Word .doc file from perl
by schick79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |