in reply to embedding a safe unescapable mini perl interpreter?
Check out the Safe module, it does exactly what you want.