perl函数集进程处理函数1进程启动函数2进程终止函数3进.docVIP

  • 2
  • 0
  • 约1.01万字
  • 约 19页
  • 2018-08-06 发布于天津
  • 举报

perl函数集进程处理函数1进程启动函数2进程终止函数3进.doc

perl函数集进程处理函数1进程启动函数2进程终止函数3进

perl函数集 一、 1、 2、 3、 4、其它控制函数 二、数学函数 三、字符串 四、 五、数 六、关 一、 1、 函数名 eval 调用语法 eval(string) 解 将string看作Perl 正确$@为空串,如果有错误,$@中 例子 $print = print (\hello,world\\n\);; eval ($print); hello, world 函数名 system system(list) 解 list中第一个元素 system启动一个进程运行程序并等待其结束,程序结束后错误代码左移八位成为返回值。 例子 @proglist = (echo, hello,world!); system(@proglist); 结果输出 hello, world! 函数名 fork procid = fork(); 解--父--同子进程返回零,父进程返回非零值,此值为子程序的进程ID号。 例子 $retval = fork(); if ($retval == 0) { # this is the child process exit; # this terminates the child process } else { # this is the parent process } 结果输出 无 函数名 pipe pipe (

文档评论(0)

1亿VIP精品文档

相关文档