This does however seem to match the perl -c syntax check. From perlrun:
       -c   causes Perl to check the syntax of the program and then exit
            without executing it.  Actually, it will execute "BEGIN",
            "UNITCHECK", "CHECK", and "use" blocks, because these are
            considered as occurring outside the execution of your program.
            "INIT" and "END" blocks, however, will be skipped.
perl -c -e 'BEGIN { print "yay\n"; }; print "boo\n"'
yay -e syntax OK

In reply to Re^4: how to check syntax of code inside a scalar? by snoopy
in thread how to check syntax of code inside a scalar? by tjking

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":