ChinaUnix.net
相关文章推荐:

perl调用3

PHP真的可以完成很多工作,但有的工作的确只适合和Per协同来做。

by hsb857 - PHP - 2005-10-23 19:53:13 阅读(2458) 回复(10)

相关讨论

能不能用perl调用IE,打开IE窗口,并输入\\10.1.3.11\d$这样的字符.....

by 打靶归来 - Perl - 2007-09-19 13:44:23 阅读(4332) 回复(6)

perl 怎么调用dll?请给一个详细的例子

by lbj - Perl - 2007-02-14 10:18:38 阅读(4150) 回复(1)

我用perl调用expect,telnet到一台交换机,发现有时能登上去,有时不行,我需要调整哪些参数?:roll:

by 屠龙 - Perl - 2006-07-26 08:43:24 阅读(974) 回复(1)

一般大家在perl使用Expect.pm。 我想在perl直接调用expect脚本,利用expect完成su root后,在perl中执行root的其他操作,不知是否可行?:roll:

by 屠龙 - Perl - 2006-07-04 18:08:03 阅读(921) 回复(0)

在copy中调用了_ckftp,但是调用的时候只给了两个参数,为什么在_ckftp中可以shift三次呢?是不是调用的时候第一个参数是系统给的什么东西? sub _cktftp { ### ### -- Check tftp arguments my($self) = shift; my($addr) = shift; my($file) = shift; } sub copy { ### ### -- Copy a running-config to a tftp server file my($self) = shift; my($addr) = shift || return undef; my($file) = shift || retur...

by iwanthome - Perl - 2003-12-16 11:56:23 阅读(826) 回复(1)

use strict; use warnings; foreach my $file ( @ARGV ) { print( "Checking $file: " ); if ( -e $file ) { # does file exist? print( "$file exists!\n" ); if ( -f $file ) { # is the file a plain file? print( "The file $file is:" ); print( " executable" ) if ( -x $file ); # executable? print( " readable" ) if ( -r $file ); # readable? ...

by orablue - Perl - 2009-07-31 11:04:55 阅读(1576) 回复(5)

知道是权限问题,但是exec('sudo perl xxx.pl')仍然无法执行,请高人指点!!

by kofit - Perl - 2009-07-20 15:52:03 阅读(1379) 回复(1)

我需要使用perl调用外部程序打开两个.log,然后perl继续下去,代码如下 my $openedfile1="1.log"; my $openedfile2="2.log"; system("\"C:\\Program Files\\IDM Computer Solutions\\UltraEdit\\Uedit32.exe\" $openedfile1\n"); system("\"C:\\Program Files\\IDM Computer Solutions\\UltraEdit\\Uedit32.exe\" $openedfile2\n"); 我如果这样写的话,程序执行到system这里能够调用ue打开log,但是每次只能打开一个,我必须关闭ue...

by bellsleep - Perl - 2009-06-16 18:03:18 阅读(4079) 回复(2)

perl执行一些ls rm cp等shell命令的时候,例如:rm -f $file,如果$file中含有一些特殊字符,例如$ \之类的,则必须要将$file中的内容替换成\\ \$ 所以想请教有没有什么方法来避免perl调用shell中这种不必要的麻烦 或者直接采用perl内置函数呢? 谢谢

by xiaoquqi - Perl - 2007-07-06 10:28:36 阅读(1802) 回复(5)

那位大哥大姐对java和perl混合编程比较熟悉的给小弟讲一下阿! java怎么调用perl模块?

by nkmaniac - Java - 2007-05-11 22:54:33 阅读(1275) 回复(0)