Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

t'mo's scratchpad

by t'mo (Pilgrim)
on Jun 02, 2004 at 00:20 UTC ( [id://358889] : scratchpad . print w/replies, xml ) Need Help??

Recently on my brain: the Inside-Out object implementation - see and Abagail's node (referenced there).

How to Perl-i-fy your JavaScript: Use regular expressions. Use JavaScript's Objects as hashes. Call pop and push (or shift and unshift) on JavaScript's Arrays. Create JavaScript functions that implement Perl's map, grep, and foreach (you might want to implement foreach first), then extend these to implement keys and values. Use eval.