in reply to Re (tilly) 2: syntax check from within perl
in thread syntax check from within perl

But safety wasn't the question - merely how to emulate perl -c...

If you want it safe from malicious intent, we all know you're basically screwed with Perl. You can't not have it execute use bits, because many imports affect the compilation, like use constant. So either you test the compilation or you don't. I believe the author asked to do so.