Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Answer: How can I delete a part of a string?

( #58600=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How can I delete a part of a string? contributed by ariels

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.

Comment on Answer: How can I delete a part of a string?
Select or Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2015-07-05 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls