Also worth noting that for single character translations like this, tr/// is much more efficient than s///.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: Re: Re: Replacing a given character starting with the xth occurence in a string
by davorg
in thread Replacing a given character starting with the xth occurence in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |