On Mar 8, 2:04 am, socr...@gmail.com (Socrtwo) wrote: > 1.http://docx2txt.sourceforge.net/- can this be installed in a > Windows Strawberry Perl? > 2. Why is there no Makefile.PL file? > 3. Is 2. because it's a script not a module? > 4. Do scripts need to be installed just like modules? How do you > manually install a script in Windows? > > Thanks for your help
I got it to work. I did the following things and am probably leaving things out or including unnecessary things: 1. Installed cygwin with crypt, unzip, make 2. Copied the docx2txt.pl, unzip and make files to my C:\strawberry \perl\bin directory. 3. Ran make in the C:\cygwin\bin directory while pointing to the make file in the C:\strawberry\bin directory. 4. Placed both the C:\cygwin\bin\ and C:\strawberry\perl\bin paths in the user variable and system variable Environmental Variables section of Windows. 5. Using Notepad++, changed line 1 of docx2txt.pl to: #!/usr/local/ bin/perl 6. Changed line 48 to: my $unzip = "/usr/local/bin/unzip". Actually I could remove this line entirely as the unzip commands works from thecommand line because I copied it into the C:\strawberry\perl\bin directory in Step 2. 7. Changed line 81 to: my $content = `unzip -p '$ARGV[0]' word/ document.xml`; I noticed that putting the dollars sign back in before unzip caused the script to fail as well as adding back in the "shunt" to the error message: 2>\dev\null. Any light on why those two things are true would be cool. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/