$formatline =~ s/\{/\{/g; doesn't do anything. It replaces «{» with «{». Perhaps you want to replace «{» with «\{»?
$formatline =~ s/\{/\\{/g;
I'm just guessing. I don't know RTF, and you didn't specify what you wanted to do.
In reply to Re^2: print curly brackets
by ikegami
in thread print curly brackets
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |