Use backticks:
More information at perlfunc:system; in particular, the second paragraph.$run="snmpwalk $host $opt_c ifType.".$thisport; $type=`$run`; print "$MAC $type $ifName $vlan $host\n";
HTH
In reply to Re: System() or the like
by VSarkiss
in thread System() or the like
by PyroX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |