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
相關文章
相關標籤/搜索