In Perl, we can write following code: $b = $a; $b =~ s/m/n/; What does above code mean? How to write above code in one statement?
It means first make a copy of $a into variable $b, and then replace 'm' with 'n' in variable $b. Write it in one statement like below: ($b=$a) =~ s/m/n/;