in reply to Limit on array size?

On a 32-bit machine, the highest index you can have is 2 ** 31 -1. After that you get an error msg saying: "Modification of non-creatable array value attempted".

But you may fail long before you reach that point, because out of memory.

my @a; $a[2 ** 31] = 1;