in reply to Re^2: Free Nodelet freed
in thread Free Nodelet freed

This might be simpler:
// Hack around mangling of left square bracket by PerlMonks. function get_item(a, i) { return eval("a\x5Bi]"); } function set_item(a, i, v) { return eval("a\x5Bi] = v"); }
var a = new Array(5); set_item(a, 2, "Hello World\n"); alert(get_item(a, 2));

Update: Never mind. New useful escapes documented here.