Is it possible to replace parts of a string without creating a whole new variable?
Now I am doing it like this:
$someString = "how do you do this"; $someString = s/how do/this is how/;
What I'm trying to do is keep the original string ($ someString) and be able to replace multiple characters without changing the original string. I am more familiar with Javascript, and I can do this in your code without having to create / modify a variable.
someString.replace(/how do/, "this is how")
Any help is appreciated, thanks alot
perl
bryan sammon
source share