At 01:56 PM 6/4/01 -0400, Tom Allen wrote:
>I want to know how much space a hash is using.
>The hash hashes straight scalar values as well as anonymous lists.
>If I have a reference to the object ($obj), how can I
>print "Object is using ".amount_of_RAM_used_by($obj)." bytes of RAM.\n";
>
>Help!  I've searched google, the Oreilly cd bookshelf, and FAQ upon FAQ!

Do 'perldoc perldebguts' and look for "Debugging Perl memory usage".

--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com

Reply via email to