Question: Question: Is there any quick way to replace an existing substring with a new substring in a string?

Suleman Khan
3522 days ago

Question: Is there any quick way to replace an existing substring with a new substring in a string?

I am currently using a s/// regex like this: $str =~ s/$find/$replace/g;

Looking for some other quicker way for the same.

Thanks