PerlOnTheWay has asked for the wisdom of the Perl Monks concerning the following question:
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? ...
Is that possible?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a way(maybe tool?) to know the amount of memory an array takes?
by derby (Abbot) on Oct 21, 2011 at 12:42 UTC | |
|
Re: Is there a way(maybe tool?) to know the amount of memory an array takes?
by zentara (Cardinal) on Oct 21, 2011 at 12:57 UTC | |
|
Re: Is there a way(maybe tool?) to know the amount of memory an array takes?
by Anonymous Monk on Oct 22, 2011 at 02:41 UTC |