wsloand has asked for the wisdom of the Perl Monks concerning the following question:
My question is: Is there a way to determine the size of a nonstandard object?
I could use an instance of the object's ->as_string method and get the length of that, but I'd prefer to have its actual size (not just the approximation from the size of its output).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I determine the amount of memory used by a variable?
by hossman (Prior) on Dec 16, 2001 at 06:36 UTC | |
|
Re: How do I determine the amount of memory used by a variable?
by Juerd (Abbot) on Dec 16, 2001 at 15:28 UTC |