in reply to Embedded Syntax Checker?

Are you willing to accept the risk that such code may contain BEGIN or use, and thus execute the code even while you're trying to compile it?

Perhaps you should look at doing this in a Safe compartment that cannot execute anything.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.