in reply to search and replace pattern inside file not working as expected
How did you determine that your while loop never gets executed?
Also, /[ARTEC]/ likely does not match what you expect it to match, given your input file. See perlre about character classes. Most likely, you wanted /^\[ARTEC\]$/.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search and replace pattern inside file not working as expected
by matze77 (Friar) on Jan 04, 2010 at 16:19 UTC |