in reply to Syntax Checking Perl Code in Strings

You can't compile a string without possibly executing some part of it, thanks to BEGIN blocks.

If you're willing to live with that, the question has been asked and answered here before, with varying degrees of success.

-- Randal L. Schwartz, Perl hacker

  • Comment on •Re: Syntax Checking Perl Code in Strings