Problems? Is your data what you think it is? | |
PerlMonks |
Re: Replacing a given character starting with the xth occurence in a stringby ZZamboni (Curate) |
on May 21, 2001 at 04:16 UTC ( [id://81887]=note: print w/replies, xml ) | Need Help?? |
Another way of doing it:
--ZZamboni Update: At ar0n's suggestion, the last line can also be written as: which results in almost exactly what sachmet wrote. I like sachmet's answer better too because it uses only one capturing set of parenthesis.
In Section
Seekers of Perl Wisdom
|
|