scratchpad
t'mo
<p>Recently on my brain: the Inside-Out object implementation - see http://www.perlmonks.org/index.pl?node_id=219924 and Abagail's node (referenced there).</p>
<p>How to Perl-i-fy your JavaScript: Use regular expressions. Use JavaScript's <code>Object</code>s as hashes. Call <code>pop</code> and <code>push</code> (or <code>shift</code> and <code>unshift</code>) on JavaScript's <code>Array</code>s. Create JavaScript functions that implement Perl's <code>map</code>, <code>grep</code>, and <code>foreach</code> (you might want to implement <code>foreach</code> first), then extend these to implement <code>keys</code> and <code>values</code>. Use eval.</p>