CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Reading MS Word files

 



airo
stranger

Sep 27, 2001, 5:52 PM

Post #1 of 1 (570 views)
Reading MS Word files Can't Post

Hi,
I can (with no problem) open edit and close a text file(.txt)
How can I do the same with a MS Word file(.doc)
Right now I'm just tring to print the contents of a simple Word file
like this "This is a test file for perl "
using this
#!C:\Perl\bin\perl.exe
use CGI qw(:all);
print header;
open(TF, "perltest.doc") || die "Can't open perltest.doc: $!";
$text=<TF>;
close(TF);
print "perltest is -- $text"

I get this
perltest is -- ࡱ;



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives