in reply to Re: Syntax checking without BEGIN blocks
in thread Syntax checking without BEGIN blocks

Why write a separate Perl script? Turn this into a module that sticks a codref in @INC to filter the BEGIN blocks into harmless normal subroutines. Acme::Incorporated shows how.