in reply to deal with system output
It's usualy much easier (and safer) to just do:
my $pid = open2($reader,$writer,'ping',@args); [download]
Kyle