http://www.perlmonks.org?node_id=58600


in reply to How can I delete a part of a string?

Expanding on japhy:
$x = 'Just another COBOL hacker,'; substr($x,13,5) = 'Perl';
Saying substr($x,13,5,'Perl') would work as well, but I find it less clear.