my @tmp = split / /,"domain (123.123.123.123) at 00:11:22:33:44:55 [ether] on eth0"; my $vip = $tmp[3];
但是可以在不使用临时变量的情况下完成吗?
my $vip = (split / /,"domain (123.123.123.123) at 00:11:22:33:44:55 [ether] on eth0")[3];