in reply to Maximum sub-arrays?

perl -wle' for (0..100_000) { $array[$_] = []; } print scalar @array' 100001
so, no, the number of "sub-arrays" is not restricted. perl data structures aren't restricted at all, except for your machine's memory of course. the problem must be somewhere else.