Using tr command I want to convert Hello into Hii.My command was:$_=Hello;print;tr/Hello/Hi/;print;But the result was Hiiii. What did I do wrong?What is the right way to do it?
How to replace a text with another in Perl
text processing;perl