Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 meditating upon the Monastery: (7)
As of 2014-08-30 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls