my ($chosen_answer) = grep { $_->[0] eq $answer } @$choices; [download]
In reply to Re^6: grep and dereferencing an array of arrays by choroba in thread grep and dereferencing an array of arrays by oakb