Look at line 8 of your code, this print should be inside the if statement to achieve the result you expect.
Simply replace line 13 with print "$arr[0] => $ipaddr\n";
In reply to Re^4: need to remove the extra line in regular expression
by greengaroo
in thread need to remove the extra line in regular expression
by ulaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |