Check syntax when building the Perl script