in reply to Re^2: how to search and replace some text in a .conf file
in thread how to search and replace some text in a .conf file

If I'm not mistaken, the +> operator in your OPEN opens the file for reading & writing, creating it if it doesn't yet exist, but truncating it if it already exists.
  • Comment on Re^3: how to search and replace some text in a .conf file