in reply to deal with system output

In addition to using the aforementioned backtick solutions, you may also want to look into IPC::Open2 and IPC::Open3, as they are much easier to use when the taint flag is on.

It's usualy much easier (and safer) to just do:

my $pid = open2($reader,$writer,'ping',@args);
Instead of trying to un-taint the arguments to backticks.

Kyle