Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by ariels (Curate)
on Feb 15, 2001 at 15:31 UTC ( #58600=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > How can I delete a part of a string? - Answer 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[thezip]: G'day!

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-01-19 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.