Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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
Node Status?
node history
Node Type: perlquestion [id://445793]
Approved by kvale
Front-paged by dmitri
help
Chatterbox?
[Happy-the-monk]: Discipulus: please, what are the labels for CTRL+SHIFT+TAB on an Eatalian keyboards?
[Discipulus]: yes but ireally do not understand anonymous's reply about cpan r command: found no bug with that number and points to mjd.. doh?!
[Discipulus]: Happy-the-monk CTRL is the same. SHIFT is a big fat arrow pointing up. TAB are two opposite arrows on each other pointing left/rigth
[choroba]: Discipulus Read the source of Acme::MJD

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-11-21 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (297 votes). Check out past polls.

    Notices?