in reply to Re^3: Unescaped left brace in regex
in thread Unescaped left brace in regex

Although I suspect this might be a legacy system, I think you might want to invest some time looking into a templating engine, such as Template, because generating HTML like this can be fairly brittle. Although it'd be a bigger change, you could also think about replacing CGI.pm with a framework that has templating built in, such as Mojolicious (see also UP-TO-DATE Comparison of CGI Alternatives).