Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by kocetoo (Novice)
on Jun 28, 2016 at 12:38 UTC ( [id://1166756]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     substr( $string, $pos, $length( $find ), $replace );
    
  2. or download this
    substr( $created, $pos, length( $find ), $replace );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found