<?xml version="1.0" encoding="windows-1252"?>
<node id="932880" title="Is there a way(maybe tool?) to know the amount of memory an array takes?" created="2011-10-21 08:34:21" updated="2011-10-21 08:34:21">
<type id="115">
perlquestion</type>
<author id="916945">
PerlOnTheWay</author>
<data>
<field name="doctext">
&lt;code&gt;
my @a;
$a[100]=1;#how much memory taken by @a so far?

$a[1000]=1;#how much memory taken by @a so far?

$a[10000]=1;#how much memory taken by @a so far?

...
&lt;/code&gt;

&lt;p&gt;Is that possible?&lt;/p&gt;</field>
</data>
</node>
