The system function is not returning the output of the called OS command, but the exit status of the forked child. If you want to retrieve the output, you need to use the backticks, although I am not sure what the result will be with a ping command.
In reply to Re: ping with perl
by Laurent_R
in thread ping with perl
by varalaxmibbnl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |