Am Dienstag, 17. Mai 2005 19.45 schrieb Peter Rabbitson: > Is there a way to determine how much a certain data structure costs in > terms of memory? In other words is there some built in command or module > that takes a reference to a nested data structure and gives a ball park > idea of how much memory this structure takes. > Thanks
Hi Peter What about Devel::Size (hmm... never tried myself): "total_size($ref) The total_size function will traverse the variable and look at the sizes of contents. Any references contained in the variable will also be followed, so this function can be used to get the total size of a multidimensional data structure. At the moment there is no way to get the size of an array or a hash and its elements without using this function." http://search.cpan.org/~dsugal/Devel-Size-0.59/Size.pm joe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>