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