Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Printing hash of a hash data

by davido (Cardinal)
on Sep 17, 2012 at 21:32 UTC ( [id://994116]=note: print w/replies, xml ) Need Help??


in reply to Printing hash of a hash data

my %hash = ( # the hash you demonstrated ); foreach my $name ( keys %hash ) { print "$key $hash{$key}{detection_profile}", exists $hash{$key}{detection_profile_severity} ? " $hash{$key}{detection_profile_severity}\n" : "\n"; }

If for some reason you wish to use printf instead, the POD should be all you need to make that minor change.


Dave

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found