http://www.perlmonks.org?node_id=841782


in reply to Re^2: mem usage
in thread mem usage

Close. When it grows, the array size doubles in size plus 4. An array with 1000 scalars in it could take up as much as

Array overhead + ( 999*2+4 ) * size of a pointer + 1000 * size of the scalars