Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by ariels (Curate)
on Feb 15, 2001 at 15:31 UTC ( [id://58600]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58600]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found