in reply to Replacing a string in a file
(see 3dan's reply)
The character after the s in a search-and-replace doesn't have to be a /. You can put almost anything there and Perl will know to split the arguments to the replace on that character. That way, you won't have to escape the slashes.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing a string in a file
by edan (Curate) on Sep 04, 2003 at 10:51 UTC |