Perl调用shell命令方法小结(system/反引号/exec)

system 反引号 exec 为避免shell命令的特殊符号采用先变量定义的方法 system perl也能够用system调用shell的命令,它和awk的system同样,返回值也是它调用的命令的退出状态.web [root@AX3sp2 ~]# cat aa.pl #! /usr/bin/perl -w $file = "wt.pl"; system("ls -l wt.pl"); $re
相关文章
相关标签/搜索