各位大哥,小弟最近有个东西要在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?” 先谢谢了
现在服务器上的WEB 环境已经搭建好了。运行了很长时间。 但现在因为业务需要用的perl 因为之前没有编绎。 有什么办法加入么?? 服务器已安装MOD—perl 我想做一个软链接再在httpd.conf 里直接加入。不知道行不行。 有没有做过的。一起讨论下啦!
请问apache支持CGI PL等脚本,是不是只要有perl包就可以了,我已经装了perl,我用rpm -q perl显示如下: [root@Linux root]# rpm -q perl perl-5.8.0-88.4 我怎么配置、才能支持CGI PL脚本 能帮我者我送空间,请联系QQ 165668
最近在学习perl,就用perl写了一个监控windows主机的脚本,大家给看看 [code] #!/usr/bin/perl -w use Win32::OLE qw[in]; my $host = $ARGV[0] || '.'; my $wmi = Win32::OLE->GetObject( "winmgmts://$host/root/cimv2" ) or die Win32::FormatMessage( Win32::OLE::LastError() ); my %instances = ( Win32_PhysicalMemory => \&get_pmem, Win32_PerfRawData_PerfOS_Memory => \&get_amem, Win32_Processor => \&get_load...
我在windows 2000装了apache,但我的网页是用ASP的,装好浏览的时候IE是显示了HTDOCS里的所有文件。就像是在浏览该目录里的文件一样!。。请问是装少了什么还是还要设置什么?谢谢!!![/img]
怎么有的程序能浏览,有的浏览不了呀,像这样的程序: [code] #!/usr/bin/perl print "Content-type:text/plain \n\n"; use CGI; $query=new CGI; print $query->header, $query->start_html('hello World'), $query->h1({-align=>center},'hello world'), $query->end_html; ~ [/code] 报告500错误:em10: [code] #!/usr/bin/perl print "Conntent-Type: text/plain\n\n"; print "这是CGI的环境变量\n"; foreach $key(keys %ENV...