HelenCr has asked for the wisdom of the Perl Monks concerning the following question:
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, somehow
use 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?
TIA, Helen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "use Win32::OLE::Const" not having an effect
by Khen1950fx (Canon) on Aug 06, 2012 at 05:05 UTC | |
by dasgar (Priest) on Aug 06, 2012 at 05:31 UTC | |
by HelenCr (Monk) on Aug 06, 2012 at 12:21 UTC | |
by dasgar (Priest) on Aug 06, 2012 at 17:41 UTC | |
by HelenCr (Monk) on Aug 06, 2012 at 18:21 UTC | |
by Corion (Patriarch) on Aug 06, 2012 at 12:23 UTC | |
|
Re: "use Win32::OLE::Const" not having an effect
by dasgar (Priest) on Aug 06, 2012 at 05:06 UTC | |
by HelenCr (Monk) on Aug 06, 2012 at 13:13 UTC | |
by dasgar (Priest) on Aug 06, 2012 at 16:05 UTC |