X BOL wishing you a very and Happy New year

Alternative content

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

Suleman Khan
3792 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