L
liyuefu
Hi friends, I want to use perl to analyze some txt files and create a
Windows Word document.
I found the module Win32-Word-Writer-0.02 can help me to archive
this, but when I
tried to test it, I got some errors:
----------------------------------------------------------------------
D:\develop\Win32-Word-Writer-0.02>nmake test
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
C:\Perl\bin\perl.exe Build --makefile_env_macros 1 test
t\00-load..............ok
t\01-saveas............ok
t\02-write.............ok 9/15Could not set style (Normal), it may not
be define
d in the document
# Looks like you planned 15 tests but only ran 9.
# Looks like your test died just after 9.
t\02-write.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 10-15
Failed 6/15 tests, 60.00% okay
t\03-open..............ok 7/15Could not set style (Normal), it may not
be define
d in the document
# Looks like you planned 15 tests but only ran 10.
# Looks like your test died just after 10.
t\03-open..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 11-15
Failed 5/15 tests, 66.67% okay
t\04-saveas_format.....Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\04-saveas_format.t line 5.
BEGIN failed--compilation aborted at t\04-saveas_format.t line 5.
t\04-saveas_format.....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-21
Failed 21/21 tests, 0.00% okay
t\05-stylespec.........Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\05-stylespec.t line 5.
BEGIN failed--compilation aborted at t\05-stylespec.t line 5.
t\05-stylespec.........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t\05-writeparagraph....Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\05-writeparagraph.t line 5.
BEGIN failed--compilation aborted at t\05-writeparagraph.t line 5.
t\05-writeparagraph....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-21
Failed 21/21 tests, 0.00% okay
t\06-setstyle..........Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\06-setstyle.t line 5.
BEGIN failed--compilation aborted at t\06-setstyle.t line 5.
t\06-setstyle..........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-13
Failed 13/13 tests, 0.00% okay
t\07-italic_bold.......Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\07-italic_bold.t line 5.
BEGIN failed--compilation aborted at t\07-italic_bold.t line 5.
t\07-italic_bold.......dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-28
Failed 28/28 tests, 0.00% okay
t\08-list..............Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\08-list.t line 5.
BEGIN failed--compilation aborted at t\08-list.t line 5.
t\08-list..............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-38
Failed 38/38 tests, 0.00% okay
t\09-table.............Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\09-table.t line 5.
BEGIN failed--compilation aborted at t\09-table.t line 5.
t\09-table.............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-1044
Failed 1044/1044 tests, 0.00% okay
t\pod-coverage.........skipped
all skipped: Test:
od::Coverage 1.04 required for testing POD
coverage
t\pod..................skipped
all skipped: Test:
od 1.14 required for testing POD
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t\02-write.t 255 65280 15 12 80.00% 10-15
t\03-open.t 255 65280 15 10 66.67% 11-15
t\04-saveas_format.t 2 512 21 42 200.00% 1-21
t\05-stylespec.t 2 512 9 18 200.00% 1-9
t\05-writeparagraph.t 2 512 21 42 200.00% 1-21
t\06-setstyle.t 2 512 13 26 200.00% 1-13
t\07-italic_bold.t 2 512 28 56 200.00% 1-28
t\08-list.t 2 512 38 76 200.00% 1-38
t\09-table.t 2 512 1044 2088 200.00% 1-1044
2 tests skipped.
Failed 9/13 test scripts, 30.77% okay. 1185/1218 subtests failed, 2.71%
okay.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff'
Stop.
-----------------------------------------------------------------------------------------
any suggestions is appreciated. Thanks.
Li Yuefu
Windows Word document.
I found the module Win32-Word-Writer-0.02 can help me to archive
this, but when I
tried to test it, I got some errors:
----------------------------------------------------------------------
D:\develop\Win32-Word-Writer-0.02>nmake test
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
C:\Perl\bin\perl.exe Build --makefile_env_macros 1 test
t\00-load..............ok
t\01-saveas............ok
t\02-write.............ok 9/15Could not set style (Normal), it may not
be define
d in the document
# Looks like you planned 15 tests but only ran 9.
# Looks like your test died just after 9.
t\02-write.............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 10-15
Failed 6/15 tests, 60.00% okay
t\03-open..............ok 7/15Could not set style (Normal), it may not
be define
d in the document
# Looks like you planned 15 tests but only ran 10.
# Looks like your test died just after 10.
t\03-open..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 11-15
Failed 5/15 tests, 66.67% okay
t\04-saveas_format.....Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\04-saveas_format.t line 5.
BEGIN failed--compilation aborted at t\04-saveas_format.t line 5.
t\04-saveas_format.....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-21
Failed 21/21 tests, 0.00% okay
t\05-stylespec.........Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\05-stylespec.t line 5.
BEGIN failed--compilation aborted at t\05-stylespec.t line 5.
t\05-stylespec.........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t\05-writeparagraph....Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\05-writeparagraph.t line 5.
BEGIN failed--compilation aborted at t\05-writeparagraph.t line 5.
t\05-writeparagraph....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-21
Failed 21/21 tests, 0.00% okay
t\06-setstyle..........Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\06-setstyle.t line 5.
BEGIN failed--compilation aborted at t\06-setstyle.t line 5.
t\06-setstyle..........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-13
Failed 13/13 tests, 0.00% okay
t\07-italic_bold.......Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\07-italic_bold.t line 5.
BEGIN failed--compilation aborted at t\07-italic_bold.t line 5.
t\07-italic_bold.......dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-28
Failed 28/28 tests, 0.00% okay
t\08-list..............Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\08-list.t line 5.
BEGIN failed--compilation aborted at t\08-list.t line 5.
t\08-list..............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-38
Failed 38/38 tests, 0.00% okay
t\09-table.............Can't locate Sub/Uplevel.pm in @INC (@INC
contains: D:\de
velop\Win32-Word-Writer-0.02\blib\lib
D:\develop\Win32-Word-Writer-0.02\blib\arc
h C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib/Test/Exception.pm
line 6.
BEGIN failed--compilation aborted at C:/Perl/site/lib/Test/Exception.pm
line 6.
Compilation failed in require at t\09-table.t line 5.
BEGIN failed--compilation aborted at t\09-table.t line 5.
t\09-table.............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-1044
Failed 1044/1044 tests, 0.00% okay
t\pod-coverage.........skipped
all skipped: Test:
coverage
t\pod..................skipped
all skipped: Test:
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t\02-write.t 255 65280 15 12 80.00% 10-15
t\03-open.t 255 65280 15 10 66.67% 11-15
t\04-saveas_format.t 2 512 21 42 200.00% 1-21
t\05-stylespec.t 2 512 9 18 200.00% 1-9
t\05-writeparagraph.t 2 512 21 42 200.00% 1-21
t\06-setstyle.t 2 512 13 26 200.00% 1-13
t\07-italic_bold.t 2 512 28 56 200.00% 1-28
t\08-list.t 2 512 38 76 200.00% 1-38
t\09-table.t 2 512 1044 2088 200.00% 1-1044
2 tests skipped.
Failed 9/13 test scripts, 30.77% okay. 1185/1218 subtests failed, 2.71%
okay.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff'
Stop.
-----------------------------------------------------------------------------------------
any suggestions is appreciated. Thanks.
Li Yuefu