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
In reply to Re: Printing hash of a hash data
by davido
in thread Printing hash of a hash data
by eanicom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |