Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How to tie multilevel (multidimensional) hash?

by mikezone (Novice)
on Feb 11, 2003 at 23:12 UTC ( [id://234549]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    tie %$hash, "MultiHash";
    $hash->{ x }{ y }{ z } = 10;
    
  2. or download this
    sub STORE {
      my ($tied_hash, $value, @keys) = @_;
    ...
      if( $x == 'foo' ) { ... }
      ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-29 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found