#!/usr/bin/perl -w
use strict;
my @arr = `cat /etc/llthosts | awk '{print /$2}'`;
#perl中使用shell命令,注意,$应该转义,否则perl会将$2解释为一个变量
#!/usr/bin/perl -w
use strict;
my @arr = `cat /etc/llthosts | awk '{print /$2}'`;
#perl中使用shell命令,注意,$应该转义,否则perl会将$2解释为一个变量
288
9389

被折叠的 条评论
为什么被折叠?