Hello Perl Compatriots,
I'm interested in knowing how to display the data in a hash of hashes using printf. I'm familiar with how to iterate through a typical hash and display the data using printf to format it but I'm having a difficult time displaying the data for a hash of hashes to format it with printf to get it to display how i want it. I know it must be easy but I'm having a bit of a difficult time. Any help would be greatly appreciated
For example,
if the Data is organized as such in the hash of hashes:
James' => { 'detection_profile' => 'disable' }, 'Bob' => { 'detection_profile' => 'enable', 'detection_profile_severity' => '180' }, 'Billy' => { 'detection_profile' => 'enable', 'detection_profile_severity' => '180' }, 'Stephanie' => { 'detection_profile' => 'enable', 'detection_profile_severity' => '180' },
How can I iterate through the hash of hashes to display the data as such:
James disable Bob enable 180 Billy enable 180 Stephanie enable 180
In reply to Printing hash of a hash data by eanicom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |