Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Slicing multilevel hashes

by bobf (Monsignor)
on Apr 07, 2005 at 17:14 UTC ( #445793=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    # do I have to resort to this?
    print join( ' ', map{ $_->{d} } @hoh{@keys} ), "\n"; # a4 c4
    
  2. or download this
    # yikes!!
    print join( ' ', @hoh{@keys}{@keys} ), "\n"; # a1 a3 c1 c3 ??
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-03-31 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (76 votes). Check out past polls.

    Notices?