In article <[EMAIL PROTECTED]>, David Ulevitch wrote: > I am trying to do this: > $ns1_in = `/usr/local/sbin/iptables -xvnL |grep 'mrtg' |grep -v 'Chain' |grep >'ns1-in' |awk '{print $2}'`; > > but perl thinks the $2 is for it so it evals it (to '') and then awk > in return prints the whole line, as opposed to the $2 that I want.
try with the following syntax: $ns1_n = qx( ... ); the qx() operator acts as the q or qq operator, by allowing you to choose your own set of delimiters. see perldoc perlop for more infos. -- briac << dynamic .sig on strike, we apologize for the inconvenience >> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]