in reply to Re^2: need to remove the extra line in regular expression
in thread need to remove the extra line in regular expression

I have added the code, please refer that
  • Comment on Re^3: need to remove the extra line in regular expression

Replies are listed 'Best First'.
Re^4: need to remove the extra line in regular expression
by greengaroo (Hermit) on Aug 22, 2012 at 14:08 UTC

    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";

    Take my advice. I don't use it anyway.