|
|
| XP is just a number | |
| PerlMonks |
Answer: How do I replace a substring (if exists) with a different substring in a string? |
| ( #98358=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > strings > How do I replace a substring (if exists) with a different substring in a string? contributed by davorg
With appropriate use of index, length and substr. And remember that substr can be used as an lvalue.
|
|
||||||||||||||||||