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

I have added the config file please refer that
  • Comment on Re^2: need to remove the extra line in regular expression

Replies are listed 'Best First'.
Re^3: need to remove the extra line in regular expression
by Anonymous Monk on Aug 22, 2012 at 13:35 UTC
    You forgot the code tags again
      I have update the code , please refer that
Re^3: need to remove the extra line in regular expression
by ulaksh (Acolyte) on Aug 22, 2012 at 14:05 UTC
    I have added the code, please refer that

      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.