Perl: the Markov chain saw | |
PerlMonks |
Re: How do I replace a substring (if exists) with a different substring in a string?by davorg (Chancellor) |
on Jul 20, 2001 at 13:50 UTC ( [id://98358]=note: print w/replies, xml ) | Need Help?? |
With appropriate use of index, length and substr. And remember that substr can be used as an lvalue.
In Section
Seekers of Perl Wisdom
|
|