Syntactic Confectionery Delight | |
PerlMonks |
Re: substitute a word in the whole file .. how ???by gjb (Vicar) |
on Aug 13, 2003 at 12:06 UTC ( [id://283516]=note: print w/replies, xml ) | Need Help?? |
As an addendum to dbwiz's solution: you may want to add word boundaries to the regexp if you want to avoid 'misfrogged' to be replaced by 'mistoadged' (ok, the example is contrived, but the potential problem isn't). So the above would become:
Hope this helps, -gjb-
In Section
Seekers of Perl Wisdom
|
|