I am facing some errors related to Win32::OLE. How to resolve this error?..

jre_64_bit=java_jre/1.8.0_275_64

No type library matching "Microsoft Excel" found at .\/MatrixGenerator.pm line 26.

Win32::OLE(0.1709): GetOleTypeLibObject() Not a Win32::OLE::TypeLib object at c:/tools/perl/5.14.4.1_3e_ecl/eclipse/plugins/com.fab.ubk.perlinterpreter/Perl/perl/vendor/lib/Win32/OLE/Const.pm line 49.

Bareword "xlThin" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2770.

Bareword "xlEdgeBottom" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2770.

Bareword "xlContinuous" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2771.

Bareword "xlEdgeBottom" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2771.

Bareword "xlAutomatic" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2772.

Bareword "xlEdgeBottom" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2772.

Compilation failed in require at START_TMG.bat line 43.

BEGIN failed--compilation aborted at START_TMG.bat line 43 (#1)

(F) With "strict subs" in use, a bareword is only allowed as a

subroutine identifier, in curly brackets or to the left of the "=>"

symbol. Perhaps you need to predeclare a subroutine?

Uncaught exception from user code:

Bareword "xlThin" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2770.

Bareword "xlEdgeBottom" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2770.

Bareword "xlContinuous" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2771.

Bareword "xlEdgeBottom" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2771.

Bareword "xlAutomatic" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2772.

Bareword "xlEdgeBottom" not allowed while "strict subs" in use at .\/MatrixGenerator.pm line 2772.

Compilation failed in require at START_TMG.bat line 43.

BEGIN failed--compilation aborted at START_TMG.bat line 43.

at START_TMG.bat line 43.


In reply to Error in Win32::OLE by ece05

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.