Thanks for the help. Let me try to clarify what I am trying to achieve..
while(<DATA>){ next unless /\w/; my($server,$datetime,$metric,$value) = (split)[0,1,2,3]; my $ddhh = substr $datetime,0,16; my $dd = substr $datetime,0,10; $h{$dd }{$metric}{max} = $value; # How can I assign Maximum val +ue within the group $dd and $metric ? $h{$dd }{$metric}{min} = $value; # How can I assign Maximum val +ue within the group $dd and $metric ? $m{$ddhh }{$metric}{max} = $value; # How can I assign Maximum val +ue within the group $ddhh and $metric ? $m{$ddhh }{$metric}{min} = $value; # How can I assign Maximum val +ue within the group $ddhh and $metric ? }
I can't use file or database to store, I mean I can't leverage anything outside perl program. My idea my be worst, I am very new to perl, please help..
In reply to Re^2: Analytics on Hash Arrays
by yasser8@gmail.com
in thread Analytics on Hash Arrays
by yasser8@gmail.com
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |