#good print $array[3]; # faster than... print $hash{'3'}; #... this #bad for(0..$#array){ if(${$array[$_]}[0] eq 'foobar'){ print ${$array[$_]}[1]; } # slower than... } print $hash{'foobar'}; #... this