Subject: | Error building module: Bareword "XML::Twig::ENT" not allowed |
When trying to install the module using CPAN, it fails with an error.
There seems to be a snytax issue in the module XMLBuilder.pm:
Generating a gmake-style Makefile
Writing Makefile for Win32::GUI::XMLBuilder
Writing MYMETA.yml and MYMETA.json
BSDZ/Win32-GUI-XMLBuilder-0.39.tar.gz
C:\Perl\bin\perl.exe Makefile.PL -- OK
Running make for B/BS/BSDZ/Win32-GUI-XMLBuilder-0.39.tar.gz
cp lib/Win32/GUI/XMLBuilder.pm blib\lib\Win32\GUI/XMLBuilder.pm
BSDZ/Win32-GUI-XMLBuilder-0.39.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- OK
Running make test for BSDZ/Win32-GUI-XMLBuilder-0.39.tar.gz
"C:\Perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/use.t .. Bareword "XML::Twig::ENT" not allowed while "strict subs" in use at C:\STRAWB~1\cpan\build\Win32-GUI-XMLBuilder-0.39-0\blib\lib/Win32/GUI/XMLBuilder.pm line 552.
Compilation failed in require at t/use.t line 6.
BEGIN failed--compilation aborted at t/use.t line 6.
t/use.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests
Test Summary Report
-------------------
t/use.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 1 tests but ran 0.
Files=1, Tests=0, 1 wallclock secs ( 0.03 usr + 0.05 sys = 0.08 CPU)
Result: FAIL
Failed 1/1 test programs. 0/0 subtests failed.
gmake: *** [Makefile:846: test_dynamic] Error 255
BSDZ/Win32-GUI-XMLBuilder-0.39.tar.gz
C:\STRAWB~1\c\bin\gmake.exe test -- NOT OK