in reply to embedding a safe unescapable mini perl interpreter?

And for your "spit back their input in HTML" problem, search for HTML escaping functions. It can be as simple as: sub escape { $_ = shift; s/&/&amp;/g; s/</&lt;/g; s/>/&gt;/g; s/"/&quot;/g; return $_; }