Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: trying to print hashes with mixed resultsby LanX (Saint) |
on Apr 09, 2021 at 03:05 UTC ( [id://11131042]=note: print w/replies, xml ) | Need Help?? |
> 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
In Section
Seekers of Perl Wisdom
|
|