in reply to deal with system output

Sounds like a job for the mighty Backticks :

my @output = `ping x.x.x.x`; ### do cool stuff with @output

Or, better, use Net::Ping
i had a memory leak once, and it ruined my favorite shirt.