$array[$#array] = $foo;