eval "return; $code";
In reply to Re: syntax check from within perl by Matts in thread syntax check from within perl by Anonymous Monk