Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: trying to print hashes with mixed results

by LanX (Saint)
on Apr 09, 2021 at 03:05 UTC ( [id://11131042]=note: print w/replies, xml ) Need Help??


in reply to Re^2: trying to print hashes with mixed results
in thread trying to print hashes with mixed results

> but just from a learning standpoint how could I get that loop work and print the values?

you are looping over a hash-ref and $v is another hash-ref, again.

so start another loop over $v.

In the general case you'll need a recursive function which loops over hash-refs and array-refs.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^3: trying to print hashes with mixed results

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found