2012年7月19日
摘要: 1 shell echo 命令会自动加入换行符2. $?接受exit 返回值3.变量等于`执行脚本` ,变量获取的值为脚本最后向STDOUT输出的值例子如下1. perl 调用shell1.sh中的内容#!/usr/bin/shecho `date`;exit 1;test.pl中的内容 1 use strict; 2 use warnings; 3 my $s=`sh 1.sh`; 4 print STDOUT "$s"; 5 my $exitcode=$?>>8; 6 print "$exitcode\n"; 2 shell调用perls 阅读全文
posted @ 2012-07-19 11:18 finallyly 阅读(2813) 评论(0) 推荐(0) 编辑