in reply to Maximum sub-arrays?
There is no limit (beyond memory) with perl's array, nested or otherwise.
GD produces erratic results.
Could you elaborate? Show a little code? You're more likely to get a useful answer if you do.