in reply to Net::Ping:External
BTW, it's better to use chomp instead of chop.
chomp only eats newlines.