http://www.perlmonks.org?node_id=93091


in reply to evaluating syntax of code blocks (code)

I can't think of any easy way of checking the syntax without leaving the interpreter. But if those code blocks are only added occasionally, you could spool the new code out to a file and use perl -c to verify the syntax.