in reply to My Ping attempt in perl

Change
print system("$?\n");
to
print "$?\n";
You are calling a program that is the return value of ping! (probably "0") so in your if statement you are testing the return value of a program called "0" which is probably not what you want.

--

flounder