4 ms·
Check arr3[2] and arr3[3] How would perl know to assign only the first 2 strings to arr3 and the next to arr4? It can't, so it assigns them all to arr3. Also
by jacknews 8y ago
Check arr3[2] and arr3[3]
How would perl know to assign only the first 2 strings to arr3 and the next to arr4? It can't, so it assigns them all to arr3.
Also why such terrible names.
Also why ternary at all, it's clearly(!) less clear in this case.