Which swaps $ and the next character (the dot), putting the next char into $1 in the replacement. Then use a function (uc) with $1 (the character) as the parameter. Use e as well as g as the final operator (which means expression - the replacement will be a calculation and not a normal straight swap).