I have a loop that spits out
lun1 active
lun2 passive
lun1 failed
lun3 other
lun1 active
I need to output this
lun
active
passive
failed
other
lun1
2
0
1
0
lun2
0
1
0
0
lun3
0
0
0
1
I am a perl neophyte of course....
and have tried constructions such as
$list($lun}{$status}++;
$list{$lun}->{$status}++;
neither of which seems to work....
as Data Dumper seems to suggest that \%list is empty.