Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: unknown number of dimensions of a multidimensional hash

by duff (Parson)
on Mar 10, 2006 at 00:47 UTC ( #535574=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $data {$a}{$b}
    $data {$a}{$b}{$c}
    $data {$d}{$e}
    
  2. or download this
    $data{join "\0", $a, $b}
    $data{join "\0", $a, $b, $c}
    $data{join "\0", $d, $e}
    
  3. or download this
    for (keys %data) {
       # you could do something with $data{$_} directly,
    ...
       my @keys = split /\0/;
       # ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://535574]
help
Chatterbox?
[Corion]: marto: Yeah - taking a week off from the kids might be a plan :-D
[choroba]: what island?
[Corion]: choroba: La Palma on the Canary Islands
[choroba]: Ah, we went to Lanzarote 2 years ago with the kids and it was OK
[Corion]: choroba: I was there last year, yes, that would be suited a bit better for kids - much more beach and more varied kids friendly landscape than La Palma :)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2018-02-23 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (303 votes). Check out past polls.

    Notices?