monarch has asked for the wisdom of the Perl Monks concerning the following question:
Running perl -wc mytest.pl takes approximately 1 minute 20 seconds to respond. My machine is a Hewlett-Packard WinXP professional running ActiveState Perl v5.8.7 with MSWin32-x86-multi-thread (Binary build 813). Pentium 4 2.8GHz, 504MB RAM.
During the delay there is almost no CPU being used.. so something could be blocking? Several months ago this would run with almost no delay. The script below compiles instantly when commenting out the line using Win32::OLE::Const.
Here is the code of mytest.pl:
use Win32::OLE; use Win32::OLE::Const 'Microsoft Office';
Update: searching through google offers this link to a cpan bug report which is identical to the problem I'm seeing.. Actually I think that bug report was the result of this perlmonks node. The fix reported works for me too, which is to remove the file-exists test in the _Typelib() function in Const.pm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE::Const startup delay
by spiritway (Vicar) on Mar 06, 2006 at 00:52 UTC | |
by monarch (Priest) on Mar 06, 2006 at 01:19 UTC | |
|
Re: Win32::OLE::Const startup delay
by Anonymous Monk on Mar 08, 2006 at 08:20 UTC |