Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: unknown number of dimensions of a multidimensional hash

by duff (Vicar)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2015-07-31 20:11 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 (281 votes), past polls