toprint system("$?\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.print "$?\n";
--
flounder
In reply to Re: My Ping attempt in perl
by flounder99
in thread My Ping attempt in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |