in reply to Problems with Ping
Try this, add:
use diagnostics;
This will at least give you more verbose error messages that might be easier to understand.