my @array = ( 'A', 1, 'B', 2, 'C', 3, 'A', 4 ); my %hash = @array; # $hash{A} == 4 or 1 or depends??