$a[$b] is the 6th element of the @a array ${a}[$b] is supposed to be the same as join '', $a, '[', $b, ']';