Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: replacing close-single-quote with apostropheby BillKSmith (Monsignor) |
on Nov 08, 2021 at 15:34 UTC ( [id://11138576]=note: print w/replies, xml ) | Need Help?? |
As others have already shown, it is best to separate the functions of decode and translation. The following code demonstrates a few minor improvements. The use of character names allows you to type your script in pure ascii. It makes your intention clear without concern about how very similar looking graphics are displayed (Probably the same reasons that you used informal character names in your post). I prefer the use of the tr/// operator rather than s///g for fixed substitutions such as this.
OUTPUT:
Bill
In Section
Seekers of Perl Wisdom
|
|