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

Re: How do I replace a substring (if exists) with a different substring in a string?

by davorg (Chancellor)
on Jul 20, 2001 at 13:50 UTC ( [id://98358]=note: print w/replies, xml ) Need Help??


in reply to How do I replace a substring (if exists) with a different substring in a string?

With appropriate use of index, length and substr.

And remember that substr can be used as an lvalue.

  • Comment on Re: How do I replace a substring (if exists) with a different substring in a string?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found