# Overwrite defaults with arrayref OUTER: for my $i (@{$a}) { for my $t (@t) { if ($i->[0] eq $t->{label}) { $t->{value} = $i->[1]; next OUTER; } } }