Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 cooling their heels in the Monastery: (5)
As of 2016-09-26 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (493 votes). Check out past polls.