in reply to Re^4: NOT seeing data in HoH
in thread add data to HoA
If you're going for a HoH, you'll need keys for each value in the inner hash (like you're using $date as a key in the outer hash). Instead of:
You probably want:$GSPmsgHash{$date} = { $alertLv, $src, $srcD, $probD, $days_between, }
This way, to get the alert level for $date, you would do the following:$GSPmsgHash{$date} = { alert_level => $alertLv, source => $src, source_detail => $srcD, problem_detail => $probD, days_between => $days_between, }
my $alert_level = $GSPmsgHash{$date}->{alert_level};
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: NOT seeing data in HoH
by dbs (Sexton) on Feb 09, 2012 at 13:51 UTC |
In Section
Seekers of Perl Wisdom