in reply to Re^2: A Better Way
in thread A Better Way
It operates on every line. On each line, there will be, at most, one substitution. If you want multiple substitutions on a line, add the 'g' modifier (see perlre for details) like this:
s/the line to be replaced/this is the new line/g
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: A Better Way
by toniax (Scribe) on Nov 04, 2010 at 18:22 UTC | |
by kcott (Archbishop) on Nov 04, 2010 at 18:43 UTC | |
|
Re^4: A Better Way
by toniax (Scribe) on Nov 04, 2010 at 22:13 UTC | |
|
Re^4: A Better Way
by toniax (Scribe) on Nov 04, 2010 at 18:29 UTC | |
|
Re^4: A Better Way
by toniax (Scribe) on Nov 04, 2010 at 18:53 UTC |