local (*RPC); open(RPC,"/bin/rpcinfo -p foo|") or die ... while() { # do something with the output }