There's more than one way to do things | |
PerlMonks |
Re: Is there a way to find the size of a data structure?by bsdz (Friar) |
on May 16, 2005 at 11:14 UTC ( [id://457414]=note: print w/replies, xml ) | Need Help?? |
You could use Storable, just freeze the structure in memory and print its length, i.e.
This will give you a "rough ball-park sizeof" without the memory overhead of using a module like Devel::Size :-)
In Section
Seekers of Perl Wisdom
|
|