in reply to HoHoH Dynamicaly

my $ref = \%statushash; $ref = $ref->{$_} for @tmp; $ref->[0] = '0';