in reply to Re: substitute on file line by line not working syntax error
in thread Search and Replace line by line not working on Filehandle
OK. Now the line prints, i wanted it to overwrite the original line but it prints to the next line maybe i need to "remember" the line number and overwrite it?print OUT $_ , "\#\ SQLNET\.AUTHENTICATION_SERVICES=\ (NTS)";
Are the parentheses around (NTS) interpreted as "backreference" and printed before as 1 ...?SQLNET.AUTHENTICATION_SERVICES= (NTS) 1# SQLNET.AUTHENTICATION_SERVICES= (NTS)<p>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: substitute on file line by line not working syntax error
by ikegami (Patriarch) on Jan 15, 2010 at 09:03 UTC | |
by matze77 (Friar) on Jan 15, 2010 at 09:39 UTC | |
by cdarke (Prior) on Jan 15, 2010 at 10:52 UTC | |
by matze77 (Friar) on Jan 15, 2010 at 11:03 UTC | |
by cdarke (Prior) on Jan 15, 2010 at 11:28 UTC | |
|