(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
In reply to Re: Replacing a string in a file
by hardburn
in thread Replacing a string in a file
by Tom_Slick_Adv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |