Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Honest question about Perl, Python and Ruby

by brian_katzung (Initiate)
on Jul 14, 2019 at 02:23 UTC ( [id://11102815]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Honest question about Perl, Python and Ruby (autovivification)
in thread Honest question about Perl, Python and Ruby

You can autovivify in Ruby with my XKeys Gem.

require 'xkeys' z = [].extend XKeys::Auto z[0, 8] = z[1, 11] = ... = z[1, 4] = 'o'

And

node_info = {}.extend XKeys::Auto node_info['list', :[], 'name'] = 'new node' # :[] means next index # {"list"=>[{"name"=>"new node"}]}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-25 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found