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;
In reply to Re: Limit on array size?
by pg
in thread Limit on array size?
by Dogg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |