for $listitem (@arraylist) { print $myarray[$listitem][0] . ""; print $myarray[$listitem][1] . ""; print $myarray[$listitem][2] . ""; }