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

Re^3: Free Nodelet freed

by ikegami (Pope)
on Nov 03, 2006 at 02:25 UTC ( #581992=note: print w/ replies, xml ) Need Help??


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"); }
Usage:
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.


Comment on Re^3: Free Nodelet freed
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581992]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-29 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls