How to replace the charactors in the string?

Possibly more importantly, perl’s strings are mutable, so a tr operation can happen in-place.

1 Like