![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Best way to allocate some memory firstby LanX (Sage) |
on Dec 02, 2021 at 22:53 UTC ( #11139340=note: print w/replies, xml ) | Need Help?? |
Why? > firstly array max is 40 - 41 KB which is pushed beyond then I doubt you measured it right, but $#array=40000 will expand an empty @array to 40001 slots. (well actually even more). But I doubt it'll allocate space for the included scalars ...(?)
update40 KB doesn't qualify as "large" in my book.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|