运行perl时,提示: Can't locate Parallel/forkmanager.pm in @INC (@INC contains: C:/perl/site/lib C: /perl/lib .) at E:\test.pl line 2. BEGIN failed--compilation aborted at E:\test.pl line 2. 脚本前两行是: use Win32; use Parallel::forkmanager .... [ 本帖最后由 icoloe 于 2008-6-2 19:33 编辑 ]
by icoloe - Perl - 2008-06-03 10:31:34 阅读(2862) 回复(2)
Error message: X Error of failed request: BadPixmap (invalid Pixmap parameter) Major opcode of failed request: 54 (X_FreePixmap) Resource id in failed request: 0x140000e Serial number of failed request: 779 Current serial number in output stream: 760 ** cmd1 just got out the pool with PID 4127 and exit code:1 X Error of failed request: BadGC (invalid GC parameter) Major opcode of failed req...
各位大哥,小弟最近有个东西要在windows上面用到perl。 假设有个程序叫abc。exe, 我可以在 windows的cmd 下面, cd c:\ abc 参数 就可以运行了。 但是如果把它写入abc.pl,它就总是提示有错,想请问各位大哥,应该怎么引入这个执行文件啊? 我写test.pl print "Hello World.\n";---没有问题 我写test.pl cd c:\; abc 参数; 它就会说“Do you need to predeclare abc?” 先谢谢了
我们在编写perl程序的时候总是会调用很多函数,来实现某一个功能。 那么如果现在我要实现某一功能,而没有实现这个功能的对应函数,那我是否可以在独立于程序之外自己 编写一个函数,然后将其存放在perl函数统一存放的地方,然后在程序中直接调用我的自制函数?(理论上应 该是可以的,毕竟perl自带的一些常用函数也都是高手们编写出来供大家用的) 那么,问题1: 这些函数应该存放的地方是哪里? perl文件夹下或pe...
@rem= 'perl sample @echo off ccperl %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl @rem '; __END__ :endofperl 那位帮我看看,这段代码是什么意思? 请详细点,谢谢.
第一次接触perl OOP,在网上找了个程序,执行时出错, 程序有两个类Base.pm,Derive.pm, 错误信息:cann't locate object method "new" via package "Base" at Derive.pm line 15. line 15 at Derive.pm部分程序为: sub new{ my $type=shift; my $this=Base->new(); $this->{'Derive'}='instant'; bless $this,$type; return $this; } 测试程序test.pl为 push(@INC,`pwd`); use Derive; $cup=new Derive; print...