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


in reply to how to check syntax of code inside a scalar?

If you want the check to be right, then no. Nothing but perl can parse Perl.

However Perl::Tidy does a usually acceptable job of figuring out Perl syntax.