I'm wondering if anyone knows a way to do the equivalent
of a "perl -c" on some code that will be eval'ed from
within a running perl. I don't want to run the code, just
check its syntax.
Of course, I could do
open (FILE, ">$file");
print FILE $code;
system ("perl -c $file");