foreach my $i( ['kept', 82], ['notkept', 1], ['repaired', 3] ) { ... # so $aref->[$i][0] # looks like $areg->[ ['kept', 82] ][0] #