in reply to Printing hash of a hash data

What have you tried? What didn't work? See How do I post a question effectively?. There's plenty of data on producing formatting strings in sprintf. Aside from that, simply iterating over the hash using Foreach Loops acting on keys should get you your loop. Then dereference each hashref as per perlreftut (e.g. print $hash{Bob}->{'detection_profile'};).

I also note that the enable/disable switch changes your output formatting, which implies to me that you don't really want printf, but maybe I'm missing something because you didn't wrap your input/output in <code> tags.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.