in reply to Is there a way to find the size of a data structure?
This will give you a "rough ball-park sizeof" without the memory overhead of using a module like Devel::Size :-)use Storable; my %a = ( 'a' => 'something..', 'b' => 'something else..', ) print length(Storable::freeze(\%a))."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way to find the size of a data structure?
by dakkar (Hermit) on May 16, 2005 at 19:19 UTC |