in reply to Syntax Checking Perl Code in Strings

They problem is that I would like to verify the syntax in the strings before I store them but I don't want to just eval the strings and ignore the results because of possible side effects.

Write each string to a temporary file and then invoke "perl -cw" on it?

  • Comment on Re: Syntax Checking Perl Code in Strings