Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Building an arbitrary-depth, multi-level hash

by ikegami (Patriarch)
on Feb 28, 2009 at 22:11 UTC ( [id://747215]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # 'categories' entry is 'GNOME;Games;Action'
    push @{ $out{GNOME}{Games}{Action} }, $val;
    # 'GNOME;Games;Action;FPS'
    push @{ $out{GNOME}{Games}{Action}{FPS} }, $val;
    # ...and so on.
    
  2. or download this
    $out{GNOME}{Games}{Action}[0] = $val;
    $out{GNOME}{Games}{Action}{FPS}[0] = $val;
                              ^
                              |
                             XXX
    
  3. or download this
    $out{GNOME}{Games}{Action}{_}[0] = $val;
    $out{GNOME}{Games}{Action}{FPS}{_}[0] = $val;
                              ^
                              |
                              Ok
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found