I want to replace "oo" and assign it to a variable $var2 in a single line. With Multiple Lines I can do like this:$var = "GoodMan"
How to do this in a line, so that $var is not changed and $var1 get's changed variable.$var1 = $var; $var1 =~ s/oo//gi;
In reply to Replace In a Single Line by anshumangoyal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |