已安装Perl软件包,但仍然看到错误 [英] Perl package is installed but still see error

查看:99
本文介绍了已安装Perl软件包,但仍然看到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚按照问题如何安装.pm以运行perl脚本"

I have just installed the package in my system using the instructions described in the question "How to install .pm to run the perl script"

现在,我正在尝试运行Perl脚本,但仍然看到以下错误:

Now, I am trying to run the Perl script But I still see the following error:

Win32::OLE operating in debugging mode: _Unique => 1
 at C:/Dwimperl/perl/site/lib/Win32/OLE/Lite.pm line 30
        require Win32/OLE/Lite.pm called at C:/Dwimperl/perl/site/lib/Win32/OLE.pm line 48
        require Win32/OLE.pm called at C:\Users\c_desaik\Desktop\pwrdb\offtarget\pwrdb.pl line 37
        main::BEGIN() called at C:/Dwimperl/perl/site/lib/Win32/OLE/Lite.pm line 0
        eval {...} called at C:/Dwimperl/perl/site/lib/Win32/OLE/Lite.pm line 0
main::(C:\Users\c_desaik\Desktop\pwrdb\offtarget\pwrdb.pl:53):

53:     my $prod_id = "QPSTAtmnServer.Application";
  DB<1>

我实际上可以在位置C:/Dwimperl/perl/site/lib/Win32/OLE上看到OLE.PM文件,但是它仍然抛出错误.

I can actually see the OLE.PM file at the location C:/Dwimperl/perl/site/lib/Win32/OLE but still it is throwing an error.

我没有复制模块,而是使用CPAN安装的.

I did not copy the module, I installed it using CPAN.

我很困惑,因为在两个位置可以看到OLE文件夹

I am confused because there are two locations where I see an OLE folder

  • C:\strawberry\perl\site\lib
  • C:/Dwimperl/perl/site/lib/Win32/OLE
  • C:\strawberry\perl\site\lib
  • C:/Dwimperl/perl/site/lib/Win32/OLE

通常,当我安装某些东西时,它只有一个根目录.我不确定为什么要从其中两个操作Perl.

Normally, when I install something, it has only one root directory. I am not sure why Perl is operated from two of those.

推荐答案

在调试模式下运行Win32 :: OLE"不是错误.这是从调试器运行使用Win32 :: OLE的脚本时发出的警告.一切都按预期运行.

"Win32::OLE operating in debugging mode" is not an error. It's a warning that's issued when a script using Win32::OLE is run from the debugger. Everything is functioning as it should.

这篇关于已安装Perl软件包,但仍然看到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆