Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上在shell中会做这样的命令替换
a=`uname -a`
那么在perl中怎么做呢?
$a = qx( uname -a )
运算符与qx反引号相同,但更具可读性。
qx
在 Perl 中几乎相同 -
$a = `uname -a`;
但是,正如@William Purcell 所说,qx它是相同的并且更具可读性。