|XP is just a number|
"use Win32::OLE::Const" not having an effectby HelenCr (Monk)
|on Aug 06, 2012 at 04:39 UTC||Need Help??|
HelenCr has asked for the
wisdom of the Perl Monks concerning the following question:
Dear wise PerlMonks
I have been working on a project on a Windows 7 system, using StrawberryPerl v 5.014 and Win32::OLE.
I am trying to use a second PC running Windows XP SP3, to have the same project developed in parallel. On the new system, I have installed Strawberry Perl v 5.016, and used cpanp to install Win32::OLE and Win32::OLE::Const.
I am using the same script sources in the new system.
It turns out that in the new system, somehowuse Win32::OLE::Const 'Microsoft Excel';
is not having an effect. I am getting the error:Bareword "xlExcel8" not allowed while "strict subs" in use in ModuleName.pm line 159.
This error does not show up in the first, original system I mentioned.
What to do?